Versions in this module Expand all Collapse all v0 v0.0.3 Jun 13, 2017 v0.0.2 Jun 13, 2017 Changes in this version + const ApprovedAttributeName + const BioAttributeName + const CompanyAttributeName + const ImageURLAttributeName + const URLAttributeName + func ContextIdentity(ctx context.Context) (*uuid.UUID, error) + func InjectTokenManager(tokenManager token.Manager) goa.Middleware + type KeycloakLogoutService struct + func (s *KeycloakLogoutService) Logout(ctx *app.LogoutLogoutContext, logoutEndpoint string, validRedirectURL string) error + type KeycloakOAuthProvider struct + Identities account.IdentityRepository + TokenManager token.Manager + Users account.UserRepository + func NewKeycloakOAuthProvider(identities account.IdentityRepository, users account.UserRepository, ...) *KeycloakOAuthProvider + func (keycloak *KeycloakOAuthProvider) CreateOrUpdateKeycloakUser(accessToken string, ctx context.Context, profileEndpoint string) (*account.Identity, *account.User, error) + func (keycloak *KeycloakOAuthProvider) Link(ctx *app.LinkLoginContext, brokerEndpoint string, clientID string, ...) error + func (keycloak *KeycloakOAuthProvider) LinkCallback(ctx *app.LinkcallbackLoginContext, brokerEndpoint string, clientID string) error + func (keycloak *KeycloakOAuthProvider) LinkSession(ctx *app.LinksessionLoginContext, brokerEndpoint string, clientID string, ...) error + func (keycloak *KeycloakOAuthProvider) Perform(ctx *app.AuthorizeLoginContext, config *oauth2.Config, brokerEndpoint string, ...) error + type KeycloakOAuthService interface + CreateOrUpdateKeycloakUser func(accessToken string, ctx context.Context, profileEndpoint string) (*account.Identity, *account.User, error) + Link func(ctx *app.LinkLoginContext, brokerEndpoint string, clientID string, ...) error + LinkCallback func(ctx *app.LinkcallbackLoginContext, brokerEndpoint string, clientID string) error + LinkSession func(ctx *app.LinksessionLoginContext, brokerEndpoint string, clientID string, ...) error + Perform func(ctx *app.AuthorizeLoginContext, config *oauth2.Config, brokerEndpoint string, ...) error + type KeycloakUserProfile struct + Attributes *KeycloakUserProfileAttributes + CreatedAt int64 + Email *string + FirstName *string + ID *string + LastName *string + Username *string + func NewKeycloakUserProfile(firstName *string, lastName *string, email *string, ...) *KeycloakUserProfile + type KeycloakUserProfileAttributes map[string][]string + type KeycloakUserProfileClient struct + func NewKeycloakUserProfileClient() *KeycloakUserProfileClient + func (userProfileClient *KeycloakUserProfileClient) Get(accessToken string, keycloakProfileURL string) (*KeycloakUserProfileResponse, error) + func (userProfileClient *KeycloakUserProfileClient) Update(keycloakUserProfile *KeycloakUserProfile, accessToken string, ...) error + type KeycloakUserProfileResponse struct + Attributes *KeycloakUserProfileAttributes + CreatedTimestamp *int64 + DisableableCredentialTypes []*string + Email *string + EmailVerified *bool + Enabled *bool + FirstName *string + ID *string + LastName *string + RequiredActions []interface{} + Totp *bool + Username *string + type LogoutService interface + Logout func(ctx *app.LogoutLogoutContext, logoutEndpoint string, validRedirectURL string) error + type UserProfileService interface + Get func(accessToken string, keycloakProfileURL string) (*KeycloakUserProfileResponse, error) + Update func(keycloakUserProfile *KeycloakUserProfile, accessToken string, ...) error