Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyCloak ¶
type KeyCloak struct {
// Extra settings for clients.
// ClientID is the application's ID.
ClientID string `cfg:"client_id"`
// ClientSecret is the application's secret.
ClientSecret string `cfg:"client_secret"`
// Scope specifies optional requested permissions.
Scopes []string `cfg:"scopes"`
// CertURL is the resource server's public key URL.
//
// BaseURL and REALM are used to construct the CertURL.
CertURL string `cfg:"cert_url"`
// AuthURL is the resource server's authorization endpoint
// use for redirection to login page.
//
// BaseURL and REALM are used to construct the AuthURL.
AuthURL string `cfg:"auth_url"`
// TokenURL is the resource server's token endpoint
// URL. This is a constant specific to each server.
//
// BaseURL and REALM are used to construct the TokenURL.
TokenURL string `cfg:"token_url"`
// BaseURL is the resource server's base URL like https://keycloak:8080.
//
// If your server has auth path set like https://keycloak:8080/auth/
BaseURL string `cfg:"base_url"`
// Realm is the resource server's realm like master.
Realm string `cfg:"realm"`
}
func (*KeyCloak) ClientConfig ¶ added in v0.4.0
func (p *KeyCloak) ClientConfig() (*clientcredentials.Config, error)
func (*KeyCloak) GetAuthURL ¶ added in v0.2.1
func (*KeyCloak) GetCertURL ¶ added in v0.4.0
func (*KeyCloak) GetClientID ¶ added in v0.2.1
func (*KeyCloak) GetClientSecret ¶ added in v0.2.1
func (*KeyCloak) GetTokenURL ¶ added in v0.2.1
Click to show internal directories.
Click to hide internal directories.