Documentation ¶
Index ¶
- type Keycloak
- type KeycloakInfo
- type KeycloakRepository
- type KeycloakRest
- type KeycloakService
- func (k *KeycloakService) ConvertToken(ctx context.Context, rawIDToken interface{}) (*User, error)
- func (k *KeycloakService) GetAuthCodeURL() string
- func (k *KeycloakService) GetRolesByUserId(userId string) ([]*UserRole, error)
- func (k *KeycloakService) Verify(ctx context.Context, part string) (token *oidc.IDToken, err error)
- func (k *KeycloakService) VerifyCallback(ctx context.Context, code string) (interface{}, error)
- type OAuthInfo
- type User
- type UserRole
- type UserToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeycloakInfo ¶
type KeycloakInfo struct {
// contains filtered or unexported fields
}
type KeycloakRepository ¶
type KeycloakRepository struct {
// contains filtered or unexported fields
}
func NewKeycloakRepository ¶
func NewKeycloakRepository(keycloak *Keycloak, rest *KeycloakRest) *KeycloakRepository
func (*KeycloakRepository) GetRoleMappingsByUserId ¶
func (k *KeycloakRepository) GetRoleMappingsByUserId(userId string) ([]*UserRole, error)
type KeycloakRest ¶
type KeycloakRest struct {
// contains filtered or unexported fields
}
func NewKeycloakRest ¶
func (*KeycloakRest) GetClientRoleMapping ¶
func (k *KeycloakRest) GetClientRoleMapping() (map[string]*gocloak.Role, error)
func (*KeycloakRest) GetRoleMappingsByUserId ¶
func (k *KeycloakRest) GetRoleMappingsByUserId(userId string) ([]gocloak.Role, error)
type KeycloakService ¶
type KeycloakService struct {
// contains filtered or unexported fields
}
func NewKeycloakService ¶
func NewKeycloakService(keycloakRepository *KeycloakRepository) *KeycloakService
func (*KeycloakService) ConvertToken ¶
func (k *KeycloakService) ConvertToken(ctx context.Context, rawIDToken interface{}) (*User, error)
func (*KeycloakService) GetAuthCodeURL ¶
func (k *KeycloakService) GetAuthCodeURL() string
func (*KeycloakService) GetRolesByUserId ¶
func (k *KeycloakService) GetRolesByUserId(userId string) ([]*UserRole, error)
func (*KeycloakService) Verify ¶
func (k *KeycloakService) Verify(ctx context.Context, part string) (token *oidc.IDToken, err error)
func (*KeycloakService) VerifyCallback ¶
func (k *KeycloakService) VerifyCallback(ctx context.Context, code string) (interface{}, error)
Click to show internal directories.
Click to hide internal directories.