Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultScopes ¶
func DefaultScopes() []string
DefaultScopes returns the default OAuth2 scopes based on PR #84
Types ¶
type AuthConfig ¶
AuthConfig represents authentication configuration
type ClientCredentials ¶
type ClientCredentials struct {
ClientID string `json:"clientId"`
ClientName string `json:"clientName"`
RedirectURIs []string `json:"redirectUris"`
RegisteredAt int64 `json:"registeredAt"` // Unix timestamp in seconds
Site string `json:"site"`
}
ClientCredentials represents DCR client credentials JSON format matches TypeScript PR #84 for cross-compatibility Note: Public clients don't receive a client_secret
type OAuthError ¶
type OAuthError struct {
Error string `json:"error"`
ErrorDescription string `json:"error_description"`
ErrorURI string `json:"error_uri,omitempty"`
}
OAuthError represents an OAuth error response
func (*OAuthError) String ¶
func (e *OAuthError) String() string
type TokenSet ¶
type TokenSet struct {
AccessToken string `json:"accessToken"`
RefreshToken string `json:"refreshToken"`
TokenType string `json:"tokenType"`
ExpiresIn int64 `json:"expiresIn"`
IssuedAt int64 `json:"issuedAt"` // Unix timestamp in seconds
Scope string `json:"scope,omitempty"`
ClientID string `json:"clientId,omitempty"` // Client ID used for this token
}
TokenSet represents OAuth2 tokens JSON format matches TypeScript PR #84 for cross-compatibility
Click to show internal directories.
Click to hide internal directories.