Documentation
¶
Overview ¶
Package keycloak offers an invitation backend for the invitation service.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
// contains filtered or unexported fields
}
Backend represents the keycloak backend.
func New ¶
func New( logger log.Logger, baseURL, clientID, clientSecret, clientRealm, userRealm string, insecureSkipVerify bool, ) *Backend
New instantiates a new keycloak.Backend with a default gocloak client.
func NewWithClient ¶
NewWithClient creates a new backend with the supplied keycloak client.
func (Backend) CanSendMail ¶
CanSendMail returns true because keycloak does allow sending mail.
func (Backend) CreateUser ¶
func (b Backend) CreateUser(ctx context.Context, invitation *invitations.Invitation) (string, error)
CreateUser creates a user in the keycloak backend.
type GoCloak ¶
type GoCloak interface { CreateUser(ctx context.Context, token, realm string, user gocloak.User) (string, error) ExecuteActionsEmail(ctx context.Context, token, realm string, params gocloak.ExecuteActionsEmail) error LoginClient(ctx context.Context, clientID, clientSecret, realm string) (*gocloak.JWT, error) RetrospectToken(ctx context.Context, accessToken, clientID, clientSecret, realm string) (*gocloak.IntroSpectTokenResult, error) }
GoCloak represents the parts of gocloak.GoCloak that we use, mainly here for mockery.
Click to show internal directories.
Click to hide internal directories.