Documentation ¶
Index ¶
- Constants
- func MakeAuthorizationMobileComponentMW(logger log.Logger, configDBModule keycloakb.ConfigurationDBModule) func(Component) Component
- func MakeGetUserInformationEndpoint(component Component) cs.Endpoint
- func MakeMobileHandler(e endpoint.Endpoint, logger log.Logger) *http_transport.Server
- type Component
- type Endpoints
- type KeycloakAccountClient
- type UsersDBModule
Constants ¶
View Source
const (
GetUserInformation = "GetUserInformation"
)
Creates constants for API method names
Variables ¶
This section is empty.
Functions ¶
func MakeAuthorizationMobileComponentMW ¶
func MakeAuthorizationMobileComponentMW(logger log.Logger, configDBModule keycloakb.ConfigurationDBModule) func(Component) Component
MakeAuthorizationMobileComponentMW checks authorization and return an error if the action is not allowed.
func MakeGetUserInformationEndpoint ¶
MakeGetUserInformationEndpoint makes the GetUserInformation endpoint
func MakeMobileHandler ¶
MakeMobileHandler make an HTTP handler for a Mobile endpoint.
Types ¶
type Component ¶
type Component interface {
GetUserInformation(ctx context.Context) (api.UserInformationRepresentation, error)
}
Component interface exposes methods used by the bridge API
func NewComponent ¶
func NewComponent(keycloakAccountClient KeycloakAccountClient, configDBModule keycloakb.ConfigurationDBModule, usersDBModule UsersDBModule, logger internal.Logger) Component
NewComponent returns the self-service component.
type KeycloakAccountClient ¶
type KeycloakAccountClient interface {
GetAccount(accessToken, realm string) (kc.UserRepresentation, error)
}
KeycloakAccountClient interface exposes methods we need to call to send requests to Keycloak API of Account
Click to show internal directories.
Click to hide internal directories.