Versions in this module Expand all Collapse all v0 v0.14.0 Jul 7, 2020 Changes in this version type SecError + func GetSuggestedThemes(keycloakHostname string, accesstoken string) (string, string, *SecError) v0.11.0 Apr 9, 2020 Changes in this version + const CodewindCliID + const CodewindClientID + const KeycloakAdminClientID + const KeycloakMasterRealm + const KeyringServiceName + func GetPathToInsecureKeyring() string + func GetServerInfo(keycloakHostname string, accesstoken string) (*ServerInfo, *SecError) + func IsSecretNotFoundError(se *SecError) bool + func SecAuthenticate(httpClient utils.HTTPClient, c *cli.Context, connectionRealm string, ...) (*AuthToken, *SecError) + func SecClientGet(c *cli.Context) (*RegisteredClient, *SecError) + func SecClientGetSecret(c *cli.Context) (*RegisteredClientSecret, *SecError) + func SecRealmGet(authURL string, accessToken string, realmName string) (*KeycloakRealm, *SecError) + func SecRefreshAccessToken(httpClient utils.HTTPClient, connection *connections.Connection, ...) (*AuthToken, *SecError) + func SecRefreshTokens(httpClient utils.HTTPClient, c *cli.Context) (*AuthToken, *SecError) + func SecUserGet(c *cli.Context) (*RegisteredUser, *SecError) + type AuthToken struct + AccessToken string + ExpiresIn int + NotBeforePolicy int + RefreshToken string + Scope string + SessionState string + TokenType string + type ClientMockAuthenticate struct + Body io.ReadCloser + StatusCode int + func (c *ClientMockAuthenticate) Do(req *http.Request) (*http.Response, error) + type ClientMockRequestFail struct + func (c *ClientMockRequestFail) Do(req *http.Request) (*http.Response, error) + type KeycloakAPIError struct + Error string + ErrorDescription string + ErrorMessage string + HTTPStatus int + type KeycloakRealm struct + DisplayName string + Enabled bool + ID string + LoginTheme string + Realm string + type KeyringSecret struct + Password []byte + Service []byte + Username []byte + type RegisteredClient struct + ClientID string + ID string + Name string + RedirectUris []string + WebOrigins []string + type RegisteredClientSecret struct + Secret string + Type string + type RegisteredClients struct + Collection []RegisteredClient + type RegisteredTheme struct + Locales []string + Name string + type RegisteredThemes struct + Account []RegisteredTheme + Admin []RegisteredTheme + Common []RegisteredTheme + Email []RegisteredTheme + Login []RegisteredTheme + Welcome []RegisteredTheme + type RegisteredUser struct + ID string + Username string + type RegisteredUsers struct + Collection []RegisteredUser + type Result struct + Status string + type Role struct + ClientRole bool + Composite bool + ContainerID string + ID string + Name string + type SecError struct + Desc string + Err error + Op string + func DeleteSecretFromKeyring(connectionID, uName string) *SecError + func GetSecretFromKeyring(connectionID, uName string) (string, *SecError) + func GetSuggestedTheme(keycloakHostname string, accesstoken string) (string, *SecError) + func SecClientAppendURL(c *cli.Context, gatekeeperURL string) *SecError + func SecClientCreate(c *cli.Context) *SecError + func SecKeyGetSecret(connectionID, username string) (string, *SecError) + func SecKeyUpdate(connectionID string, username string, password string) *SecError + func SecRealmCreate(c *cli.Context) *SecError + func SecRoleCreate(c *cli.Context) *SecError + func SecUserAddRole(c *cli.Context) *SecError + func SecUserCreate(c *cli.Context) *SecError + func SecUserSetPW(c *cli.Context) *SecError + func StoreSecretInKeyring(connectionID, uName, pass string) *SecError + func (se *SecError) Error() string + type ServerInfo struct + Themes RegisteredThemes