Documentation ¶
Index ¶
Constants ¶
View Source
const ( ACCESS_TOKEN = iota REFRESH_TOKEN )
View Source
const (
DefaultLength = 32
)
Variables ¶
This section is empty.
Functions ¶
func ConcurrentAuthorizationCodeFlow ¶ added in v0.7.0
Types ¶
type CallbackPage ¶
type DefaultBrowser ¶ added in v0.7.0
type DefaultBrowser struct { }
func (*DefaultBrowser) Destroy ¶ added in v0.7.0
func (d *DefaultBrowser) Destroy() error
type Options ¶
type Options struct { AuthorizationEndpoint string Scopes []string // Extensions to the standard OAuth Parameters for the authorizaion endpoint AuthorizationExtParams map[string]string TokenEndpoint string RevokeEndpoint string ClientId string ClientSecret string RedirectUri *url.URL ClientTimeout time.Duration PortRange PortRange // If nil, system default browser will be used Browser Browser }
type TokenResponse ¶
type TokenResponse struct { IdToken string `json:"id_token"` AccessToken string `json:"access_token"` ExpiresIn int64 `json:"expires_in"` RefreshToken string `json:"refresh_token"` RefreshExpiresIn int64 `json:"refresh_expires_in"` }
func AuthorizationCodeFlow ¶
func AuthorizationCodeFlow(opts Options) (TokenResponse, error)
Click to show internal directories.
Click to hide internal directories.