oauth2

package
v2.7.1 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 TokenInfoResponse added in v2.6.0

type TokenInfoResponse struct {
	Active           bool   `json:"active"`
	Scope            string `json:"scope,omitempty"`
	Error            string `json:"error,omitempty"`
	ErrorDescription string `json:"error_description,omitempty"`
}

type TokenResponse added in v2.6.0

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

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