Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessToken ¶
type AccessToken struct { AccessToken string `json:"access_token,omitempty"` ExpiresIn int `json:"expires_in,omitempty"` IdToken string `json:"id_token,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` Scope string `json:"scope,omitempty"` TokenType string `json:"token_type,omitempty"` UserId string `json:"userId,omitempty"` }
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func New ¶
func New(logger abstractlogger.Logger, authBaseUrl string, clientID string) *Authenticator
func (*Authenticator) LoadRefreshAccessToken ¶
func (a *Authenticator) LoadRefreshAccessToken() string
func (*Authenticator) Login ¶
func (a *Authenticator) Login() string
func (*Authenticator) Logout ¶
func (a *Authenticator) Logout()
type DeviceResponse ¶
type DeviceResponse struct { DeviceCode string `json:"device_code,omitempty"` ExpiresIn int `json:"expires_in,omitempty"` Interval int `json:"interval,omitempty"` UserCode string `json:"user_code,omitempty"` VerificationUri string `json:"verification_uri,omitempty"` VerificationUriComplete string `json:"verification_uri_complete,omitempty"` }
type JWTRefreshResponse ¶
type JWTRefreshResponse struct { ExpiresIn int `json:"expires_in,omitempty"` RefreshExpiresIn int `json:"refresh_expires_in,omitempty"` RefreshToken string `json:"refresh_token,omitempty"` AccessToken string `json:"access_token,omitempty"` TokenType string `json:"token_type,omitempty"` SessionState string `json:"session_state,omitempty"` Scope string `json:"scope,omitempty"` NotBeforePolicy string `json:"not-before-policy,omitempty"` }
Click to show internal directories.
Click to hide internal directories.