Versions in this module Expand all Collapse all v1 v1.0.0 Feb 15, 2019 Changes in this version + type APIError struct + Code int + Message string + func (apiError APIError) Error() string + type Access struct + Impersonate bool + Manage bool + ManageGroupMembership bool + MapRoles bool + View bool + type ActiveKeys struct + AES string + HS256 string + RS256 string + type Attributes struct + LDAPENTRYDN []string + LDAPID []string + type CertResponse struct + Keys []CertResponseKey + type CertResponseKey struct + Alg string + E string + Kid string + Kty string + N string + Use string + type Client struct + ClientID string + ID string + type ClientRoleMappingRole struct + ClientRole bool + Composite bool + ContainerID string + Description string + ID string + Name string + ScopeParamRequired bool + type ClientScope struct + ClientScopeAttributes ClientScopeAttributes + Description string + ID string + Name string + Protocol string + ProtocolMappers ProtocolMappers + type ClientScopeAttributes struct + ConsentScreenText string + DisplayOnConsentScreen string + type Component struct + ComponentConfig ComponentConfig + ID string + Name string + ParentID string + ProviderID string + ProviderType string + SubType string + type ComponentConfig struct + Algorithm []string + Priority []string + type GoCloak interface + CreateClient func(accessToken string, realm string, clientID Client) error + CreateClientScope func(accessToken string, realm string, scope ClientScope) error + CreateComponent func(accessToken string, realm string, component Component) error + CreateGroup func(accessToken string, realm string, group Group) error + CreateRole func(accessToken string, realm string, clientID string, role Role) error + CreateUser func(token string, realm string, user User) (*string, error) + DecodeAccessToken func(accessToken string, realm string) (*jwt.Token, *jwt.MapClaims, error) + DecodeAccessTokenCustomClaims func(accessToken string, realm string, claims jwt.Claims) (*jwt.Token, error) + DeleteClient func(accessToken string, realm, clientID string) error + DeleteClientScope func(accessToken string, realm, scopeID string) error + DeleteComponent func(accessToken string, realm, componentID string) error + DeleteGroup func(accessToken string, realm, groupID string) error + DeleteRole func(accessToken string, realm, clientID, roleName string) error + DeleteUser func(accessToken string, realm, userID string) error + GetCerts func(realm string) (*CertResponse, error) + GetClients func(accessToken string, realm string) (*[]Client, error) + GetComponents func(accessToken string, realm string) (*[]Component, error) + GetGroup func(accessToken string, realm, groupID string) (*Group, error) + GetGroups func(accessToken string, realm string) (*[]Group, error) + GetIssuer func(realm string) (*IssuerResponse, error) + GetKeyStoreConfig func(accessToken string, realm string) (*KeyStoreConfig, error) + GetRealmRolesByGroupID func(accessToken string, realm string, groupID string) (*[]Role, error) + GetRealmRolesByUserID func(accessToken string, realm string, userID string) (*[]Role, error) + GetRoleMappingByGroupID func(accessToken string, realm string, groupID string) (*[]RoleMapping, error) + GetRoleMappingByUserID func(accessToken string, realm string, userID string) (*[]RoleMapping, error) + GetRoles func(accessToken string, realm string) (*[]Role, error) + GetRolesByClientID func(accessToken string, realm string, clientID string) (*[]Role, error) + GetUserByID func(accessToken string, realm string, userID string) (*User, error) + GetUserCount func(accessToken string, realm string) (int, error) + GetUserGroups func(accessToken string, realm string, userID string) (*[]UserGroup, error) + GetUsers func(accessToken string, realm string) (*[]User, error) + GetUsersByRoleName func(token string, realm string, roleName string) (*[]User, error) + Login func(clientID string, clientSecret string, realm string, username string, ...) (*JWT, error) + LoginAdmin func(username, password, realm string) (*JWT, error) + LoginClient func(clientID, clientSecret, realm string) (*JWT, error) + RefreshToken func(refreshToken string, clientID, clientSecret, realm string) (*JWT, error) + RequestPermission func(clientID string, clientSecret string, realm string, username string, ...) (*JWT, error) + RetrospectToken func(accessToken string, clientID, clientSecret string, realm string) (*RetrospecTokenResult, error) + SetPassword func(token string, userID string, realm string, password string, temporary bool) error + UpdateClient func(accessToken string, realm string, clientID Client) error + UpdateClientScope func(accessToken string, realm string, scope ClientScope) error + UpdateGroup func(accessToken string, realm string, group Group) error + UpdateRole func(accessToken string, realm string, clientID string, role Role) error + UpdateUser func(accessToken string, realm string, user User) error + UserAttributeContains func(attributes map[string][]string, attribute string, value string) bool + func NewClient(basePath string) GoCloak + type Group struct + ID string + Name string + Path string + SubGroups []interface{} + type IssuerResponse struct + AccountService string + PublicKey string + Realm string + TokenService string + TokensNotBefore int + type JWT struct + AccessToken string + ExpiresIn int + NotBeforePolicy int + RefreshExpiresIn int + RefreshToken string + Scope string + SessionState string + TokenType string + type Key struct + Algorithm string + Certificate string + Kid string + ProviderID string + ProviderPriority int + PublicKey string + Status string + Type string + type KeyStoreConfig struct + ActiveKeys ActiveKeys + Key []Key + type ObjectAllreadyExists struct + func (o *ObjectAllreadyExists) Error() string + type ProtocolMappers struct + ConsentRequired bool + ID string + Name string + Protocol string + ProtocolMapper string + ProtocolMappersConfig ProtocolMappersConfig + type ProtocolMappersConfig struct + AccessTokenClaim string + ClaimName string + IDTokenClaim string + JSONTypeLabel string + UserAttribute string + UserinfoTokenClaim string + type RetrospecTokenResult struct + Active bool + Aud string + AuthTime int + Exp int + Iat int + Jti string + Nbf int + Permissions map[string]string + Type string + type Role struct + ClientRole bool + Composite bool + ContainerID string + Description string + ID string + Name string + ScopeParamRequired bool + type RoleMapping struct + Client string + ID string + Mappings []ClientRoleMappingRole + type SetPasswordRequest struct + Password string + Temporary bool + Type string + type User struct + Access map[string]bool + Attributes map[string][]string + CreatedTimestamp int64 + DisableableCredentialTypes []interface{} + Email string + EmailVerified bool + Enabled bool + FederationLink string + FirstName string + ID string + LastName string + RequiredActions []interface{} + Totp bool + Username string + type UserGroup struct + ID string + Name string + Path string Other modules containing this package github.com/Nerzal/gocloak/v10 github.com/Nerzal/gocloak/v11 github.com/Nerzal/gocloak/v12 github.com/Nerzal/gocloak/v13 github.com/Nerzal/gocloak/v3 github.com/Nerzal/gocloak/v4 github.com/Nerzal/gocloak/v5 github.com/Nerzal/gocloak/v6 github.com/Nerzal/gocloak/v7 github.com/Nerzal/gocloak/v8 github.com/Nerzal/gocloak/v9