Versions in this module Expand all Collapse all v1 v1.0.1 Nov 28, 2023 Changes in this version + var ErrNoAuthToken = errors.New("session token missing") + var ErrReadingToken = errors.New("session token internal data is malformed") + var ErrTokenExpired = errors.New("session token has expired") + func DecryptToken(ciphertext string) (plaintext []byte, err error) + func GetCredentialsFromLDAP(client *http.Client, endpoint, ldapUser, ldapPassword string) (*credentials.Credentials, error) + func GetTokenFromRequest(r *http.Request) (string, error) + func IsSessionTokenValid(token string) bool + func NewEncryptedTokenForClient(credentials *credentials.Value, accountAccessKey string, ...) (string, error) + type IdentityProvider struct + Client *oauth2.Provider + KeyFunc oauth2.StateKeyFunc + RoleARN string + func (c IdentityProvider) GenerateLoginURL() string + func (c IdentityProvider) VerifyIdentity(ctx context.Context, code, state string) (*credentials.Credentials, error) + func (c IdentityProvider) VerifyIdentityForOperator(ctx context.Context, code, state string) (*xoauth2.Token, error) + type IdentityProviderI interface + GenerateLoginURL func() string + VerifyIdentity func(ctx context.Context, code, state string) (*credentials.Credentials, error) + VerifyIdentityForOperator func(ctx context.Context, code, state string) (*xoauth2.Token, error) + type STSClaims struct + AccessKey string + type SessionFeatures struct + CustomStyleOB string + HideMenu bool + ObjectBrowser bool + type TokenClaims struct + AccountAccessKey string + CustomStyleOB string + HideMenu bool + ObjectBrowser bool + STSAccessKeyID string + STSSecretAccessKey string + STSSessionToken string + func ParseClaimsFromToken(claims string) (*TokenClaims, error) + func SessionTokenAuthenticate(token string) (*TokenClaims, error)