Documentation
¶
Index ¶
Constants ¶
View Source
const ( AccessTokenEnvVar = "KEYCLOAK_ACCESS_TOKEN" RefreshTokenEnvVar = "KEYCLOAK_REFRESH_TOKEN" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface {
PasswordToken(ctx context.Context, baseURL, realm, username, password string) (oauth2.Token, error)
AccessToken(ctx context.Context, baseURL, accessToken, refreshToken string) (string, error)
SetEnvToken(key, value, envFile string) error
}
Service is the public API for Keycloak admin token acquisition and refresh.
Click to show internal directories.
Click to hide internal directories.