oauth2

package
v0.0.0-...-1df6098 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: MIT Imports: 13 Imported by: 0

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"`
	TokenType    string `json:"token_type"`
	ExpiresIn    int    `json:"expires_in"`
	RefleshToken string `json:"reflesh_token"`
	Scope        string `json:"scope"`
}

func GetAccessToken

func GetAccessToken(profile string) (*AccessToken, error)

type OAuth2Config

type OAuth2Config struct {
	ClientID                       string
	ClientSecret                   string
	TokenEndpoint                  string
	AuthorizationEndpoint          string
	GrantType                      string
	Scope                          string
	RedirectURI                    string
	Username                       string
	Password                       string
	TokenRequestParameters         map[string]string
	AuthorizationRequestParameters map[string]string
}

Jump to

Keyboard shortcuts

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