Versions in this module Expand all Collapse all v0 v0.0.30 Nov 17, 2022 v0.0.29 Oct 25, 2022 v0.0.28 Oct 24, 2022 v0.0.27 Sep 6, 2022 v0.0.26 Sep 5, 2022 v0.0.25 Jul 21, 2022 v0.0.24 Jul 18, 2022 v0.0.23 Jul 18, 2022 v0.0.22 Jul 13, 2022 v0.0.21 Jun 8, 2022 v0.0.20 May 23, 2022 v0.0.19 Mar 29, 2022 Changes in this version + const InvalidTokenError + const TokenNotFoundError + type ApiKey struct + Description string + ID string + KeyValue string + Name string + Roles []ApiKeyRole + ValidFrom time.Time + ValidTo time.Time + type ApiKeyRole struct + ID string + Name string + func NewApiKeyRole(name string) *ApiKeyRole + type OAuthConfigurationResponse struct + AuthorizationEndpoint string + BackchannelLogoutSessionSupported bool + BackchannelLogoutSupported bool + CheckSessionIframe string + ClaimsSupported []string + CodeChallengeMethodsSupported []string + DeviceAuthorizationEndpoint string + EndSessionEndpoint string + FrontchannelLogoutSessionSupported bool + FrontchannelLogoutSupported bool + GrantTypesSupported []string + IDTokenSigningAlgValuesSupported []string + IntrospectionEndpoint string + Issuer string + JwksURI string + RequestParameterSupported bool + ResponseModesSupported []string + ResponseTypesSupported []string + RevocationEndpoint string + ScopesSupported []string + SubjectTypesSupported []string + TokenEndpoint string + TokenEndpointAuthMethodsSupported []string + UserinfoEndpoint string + type OAuthErrorResponse struct + Error OAuthErrorType + ErrorDescription string + ErrorUri string + func NewOAuthErrorResponse(err OAuthErrorType, description string) OAuthErrorResponse + func (err OAuthErrorResponse) Log(extraLogs ...string) + func (err OAuthErrorResponse) String() string + type OAuthErrorType int64 + const OAuthInvalidClientError + const OAuthInvalidGrant + const OAuthInvalidRequestError + const OAuthInvalidScope + const OAuthUnauthorizedClient + const OAuthUnsupportedGrantType + func (oAuthErrorType *OAuthErrorType) UnmarshalJSON(b []byte) error + func (oAuthErrorType OAuthErrorType) FromString(keyType string) OAuthErrorType + func (oAuthErrorType OAuthErrorType) MarshalJSON() ([]byte, error) + func (oAuthErrorType OAuthErrorType) String() string + type OAuthGrantType int64 + const OAuthPasswordGrant + func (oauthGrantType *OAuthGrantType) UnmarshalJSON(b []byte) error + func (oauthGrantType OAuthGrantType) FromString(keyType string) OAuthGrantType + func (oauthGrantType OAuthGrantType) MarshalJSON() ([]byte, error) + func (oauthGrantType OAuthGrantType) String() string + type OAuthIntrospectResponse struct + Active bool + ClientId string + ExpiresAt string + ID string + IssuedAt string + Issuer string + Subject string + TokenType string + type OAuthJwksKey struct + Algorithm encryption.EncryptionKey + AlgorithmFamily encryption.EncryptionKeyType + Curve string + Exponent string + ID string + Modulus string + Thumbprint string + Use string + X string + X5C []string + Y string + type OAuthJwksResponse struct + Keys []OAuthJwksKey + type OAuthLoginRequest struct + ClientID string + ClientSecret string + GrantType string + Password string + RefreshToken string + Scope string + Username string + type OAuthLoginResponse struct + AccessToken string + ExpiresIn string + RefreshToken string + Scope string + TokenType string + type OAuthRegisterRequest struct + Claims []string + Email string + FirstName string + LastName string + Password string + Roles []string + Username string + type OAuthRevokeRequest struct + ClientID string + GrantType string + type Tenant struct + ID string + Name string + func NewTenant() *Tenant + type TenantFeature struct + ID string + Name string + State TenantFeatureState + type TenantFeatureState int64 + const Deleted + const Deleting + const Disabled + const Disabling + const Enabled + const Enabling + const Error + const Provisioned + const Provisioning + const Unknown + func (l TenantFeatureState) FromString(value string) TenantFeatureState + func (l TenantFeatureState) String() string + type User struct + Blocked bool + BlockedUntil string + Claims []UserClaim + DisplayName string + Email string + EmailVerified bool + EmailVerifyToken string + FirstName string + ID string + InvalidAttempts int + LastName string + Password string + RefreshToken string + Roles []UserRole + Token string + Username string + func NewUser() *User + func (u User) IsValid() bool + type UserClaim struct + ID string + Name string + func NewUserClaim(id string, name string) UserClaim + func (uc UserClaim) IsValid() bool + type UserRole struct + ID string + Name string + func NewUserRole(id string, name string) UserRole + func (ur UserRole) IsSuperUser() bool + func (ur UserRole) IsValid() bool + type UserToken struct + Audiences []string + DisplayName string + Email string + EmailVerified bool + ExpiresAt time.Time + FirstName string + ID string + IssuedAt time.Time + Issuer string + LastName string + Nonce string + NotBefore time.Time + RefreshToken string + Roles []string + Scope string + TenantId string + Token string + UsedKeyID string + User string + UserID string + func (userToken *UserToken) UnmarshalJSON(b []byte) error