oauth2

package
v3.0.0-alpha.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

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 ErrorResponse struct {
	Error            string `json:"error,omitempty"`
	ErrorDescription string `json:"error_description,omitempty"`

} //@name OAuthErrorResponse

type TokenInfoResponse

type TokenInfoResponse struct {
	Active bool   `json:"active"`
	Scope  string `json:"scope,omitempty"`
	ErrorResponse

} //@name OAuth2TokenInfoResponse

func GetInfo

func GetInfo(token string, hint string) (TokenInfoResponse, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL