Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Master realm name - typically named as master MasterRealmName = "master" // AdminClientID - client id to be used for creating Admin Client AdminClientID = "admin-cli" )
Variables ¶
This section is empty.
Functions ¶
func IsConflictError ¶
Types ¶
type Client ¶
type Client struct {
// gocloak lib handle
gocloak.GoCloak
// contains filtered or unexported fields
}
func NewPublicClient ¶
create a new unauthenticated public keycloak client for given endpoint typically will be consumed by public authentication validators
Public client is required only to be consumed by OIDC verifier for validating the provided token and usage is expected to be restricted to auth gateway internal use only
func NewUserClient ¶
create a new keycloak client for given endpoint and user credentials This requires direct flow validations enabled, which typically is not considered secure and is not recommended for production scenarios, more to be used in development environment. where direct flow enablement needs to be done manually
func (*Client) GetAccessToken ¶
Gets the current access token from the client
Click to show internal directories.
Click to hide internal directories.