Documentation
¶
Index ¶
- func NewGlobalHelper(opts ...Option) error
- type Auth
- type Client
- type Helper
- func (h *Helper) CreateClient(realm string, opts gocloak.Client) (string, error)
- func (h *Helper) CreateClientProtocolMapper(realm, clientID string, opts gocloak.ProtocolMapperRepresentation) (string, error)
- func (h *Helper) GetClientSecret(realm, clientID string) (*gocloak.CredentialRepresentation, error)
- func (h *Helper) GetClients(realm string, params gocloak.GetClientsParams) ([]*gocloak.Client, error)
- func (h *Helper) LoginAdmin() error
- func (h *Helper) LogoutUserSession(realm, sessionID string) error
- func (h *Helper) SetKeycloakClient() error
- func (h *Helper) UpdateUser(realm string, user gocloak.User) error
- type Host
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGlobalHelper ¶
Types ¶
type Client ¶
type Client interface {
RestyClient() *resty.Client
Login(context.Context, string, string, string, string, string) (*gocloak.JWT, error)
LoginAdmin(context.Context, string, string, string) (*gocloak.JWT, error)
GetUsers(context.Context, string, string, gocloak.GetUsersParams) ([]*gocloak.User, error)
GetClients(context.Context, string, string, gocloak.GetClientsParams) ([]*gocloak.Client, error)
CreateClient(context.Context, string, string, gocloak.Client) (string, error)
CreateClientProtocolMapper(context.Context, string, string, string, gocloak.ProtocolMapperRepresentation) (string, error)
GetClientSecret(ctx context.Context, token, realm, idOfClient string) (*gocloak.CredentialRepresentation, error)
UpdateUser(context.Context, string, string, gocloak.User) error
LogoutUserSession(context.Context, string, string, string) error
}
type Helper ¶
func GetGlobalHelper ¶
func GetGlobalHelper() *Helper
func (*Helper) CreateClient ¶
func (*Helper) CreateClientProtocolMapper ¶
func (*Helper) GetClientSecret ¶
func (*Helper) GetClients ¶
func (*Helper) LoginAdmin ¶
func (*Helper) LogoutUserSession ¶
func (*Helper) SetKeycloakClient ¶
func (*Helper) UpdateUser ¶
Click to show internal directories.
Click to hide internal directories.