Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RefreshIfStale ¶
func RefreshIfStale()
func RefreshToken ¶
func RefreshToken() bool
Types ¶
type ErrorResponse ¶
type TokenInfoResponse ¶
type TokenInfoResponse struct { Active bool `json:"active"` Scope string `json:"scope,omitempty"` ErrorResponse } //@name OAuth2TokenInfoResponse
type TokenResponse ¶
type TokenResponse struct { AccessToken string `json:"access_token,omitempty"` TokenType string `json:"token_type,omitempty"` ExpiresIn int64 `json:"expires_in,omitempty"` Scope string `json:"scope"` ErrorResponse } //@name OAuth2TokenResponse
type WebSSHAuthorization ¶
type WebSSHAuthorization struct { }
func (*WebSSHAuthorization) Validate ¶
func (ws *WebSSHAuthorization) Validate(username string, password string) (*ssh.Permissions, error)
Click to show internal directories.
Click to hide internal directories.