Versions in this module Expand all Collapse all v0 v0.4.0 Jul 18, 2026 Changes in this version type Client + func (c *Client) RevokeTokenForm(ctx context.Context, in RevokeRequest) error + type RevokeRequest struct + ClientID string + ClientSecret string + Token string + TokenTypeHint string v0.3.0 Jul 18, 2026 Changes in this version type Client + func (c *Client) IssueTokenForm(ctx context.Context, in TokenRequest) (TokenResponse, error) + type OAuth2Error struct + Code string + Description string + HTTPStatus int + URI string + func IsOAuth2Error(err error) (*OAuth2Error, bool) + func (e *OAuth2Error) Error() string v0.2.0 Jul 18, 2026 Changes in this version type Client + func (c *Client) RevokeToken(ctx context.Context, in RevokeTokenRequest) (RevokeTokenResponse, error) + func (c *Client) SignUp(ctx context.Context, in SignUpInput) (SignUpOutput, error) + type RevokeTokenRequest struct + Token string + TokenTypeHint string + type RevokeTokenResponse struct + type SignUpInput struct + CompanyName string + DisplayName string + Email string + Password string + Tenant string + Username string + type SignUpOutput struct + AccessToken string + ExpiresIn int + ProvisionedRoles []string + RootRole string + Tenant string + TokenType string + Username string type TokenRequest + Password string + RefreshToken string + Username string type TokenResponse + RefreshToken string + RefreshTokenExpiresIn int v0.1.0 Jun 25, 2026 Changes in this version + var ErrConflict = errors.New("conflict") + var ErrForbidden = errors.New("forbidden") + var ErrInternal = errors.New("internal error") + var ErrNotFound = errors.New("not found") + var ErrUnauthorized = errors.New("unauthorized") + var ErrValidation = errors.New("validation failed") + type AssumeRoleInput struct + DurationSeconds int + RoleSlug string + SessionName string + type AssumeRoleOutput struct + AccessToken string + AssumedClaims *AssumedClaims + ExpiresAt string + type AssumedClaims struct + AssumedBy string + Exp int64 + Iat int64 + Iss string + Role string + SessionName string + Sub string + Tenant string + type Client struct + func New(endpoint, token string, opts ...Option) *Client + func (c *Client) AssumeRole(ctx context.Context, in AssumeRoleInput) (AssumeRoleOutput, error) + func (c *Client) CreateServiceAccount(ctx context.Context, in CreateServiceAccountInput) (CreateServiceAccountOutput, error) + func (c *Client) DeleteServiceAccount(ctx context.Context, in ServiceAccountIdInput) error + func (c *Client) Endpoint() string + func (c *Client) GetHealth(ctx context.Context) (HealthOutput, error) + func (c *Client) GetJWKS(ctx context.Context) (JWKSet, error) + func (c *Client) GetOpenIDConfiguration(ctx context.Context) (OpenIDConfiguration, error) + func (c *Client) GetServiceAccount(ctx context.Context, in ServiceAccountIdInput) (ServiceAccount, error) + func (c *Client) GetSession(ctx context.Context, in SessionIdInput) (SessionDetail, error) + func (c *Client) IssueToken(ctx context.Context, in TokenRequest) (TokenResponse, error) + func (c *Client) ListServiceAccounts(ctx context.Context, in ListServiceAccountsInput) (ListServiceAccountsOutput, error) + func (c *Client) Login(ctx context.Context, in LoginInput) (LoginOutput, error) + func (c *Client) Logout(ctx context.Context, in LogoutInput) error + func (c *Client) RefreshSession(ctx context.Context, in RefreshInput) (LoginOutput, error) + type CreateServiceAccountInput struct + ClientId string + Description string + Name string + Scope []string + Tenant string + type CreateServiceAccountOutput struct + ClientId string + ClientSecret string + Name string + Tenant string + type ErrorEnvelope struct + Code string + Details map[string]any + Message string + RequestID string + Status int + TraceID string + func (e ErrorEnvelope) Error() string + type HealthOutput struct + Status string + type JWK struct + Alg string + Crv string + E string + Kid string + Kty string + N string + Use string + X string + Y string + type JWKSet struct + Keys []*JWK + type ListServiceAccountsInput struct + Tenant string + type ListServiceAccountsOutput struct + Accounts []*ServiceAccount + type LoginInput struct + Password string + Tenant string + Username string + type LoginOutput struct + ExpiresAt string + Roles []string + SessionId string + Tenant string + Token string + type LogoutInput struct + SessionId string + type OpenIDConfiguration struct + AuthorizationEndpoint string + GrantTypesSupported []string + IdTokenSigningAlgValuesSupported []string + Issuer string + JwksUri string + ResponseTypesSupported []string + ScopesSupported []string + SubjectTypesSupported []string + TokenEndpoint string + type Option func(*Client) + func WithHTTPClient(h *http.Client) Option + func WithTimeout(d time.Duration) Option + type RefreshInput struct + SessionId string + type ServiceAccount struct + ClientId string + CreatedAt string + Description string + Name string + Scope []string + Tenant string + type ServiceAccountIdInput struct + ClientId string + type ServiceClaims struct + Aud []string + ClientId string + Exp int64 + Iat int64 + Iss string + Roles []string + Scope []string + Sub string + Tenant string + type SessionDetail struct + ExpiresAt string + IssuedAt string + Roles []string + SessionId string + Subject string + Tenant string + type SessionIdInput struct + SessionId string + type TokenRequest struct + ClientId string + ClientSecret string + GrantType string + Scope []string + Tenant string + type TokenResponse struct + AccessToken string + ExpiresIn int + Scope []string + TokenType string