package
0.0.0-20170717123514-4b6c822be2eb
Repository: https://github.com/stretchr/gomniauth.git
Documentation: pkg.go.dev

# README

OAuth2 package

Inspired by goauth2

# Functions

AuthorizationHeader returns the key, value pair to insert into an authorized request.
CompleteAuth takes a map of arguments that are used to complete the authorisation process, completes it, and returns the appropriate common.Credentials.
Get executes an authenticated HTTP GET against the given provider and returns an objx.Map of the response.
GetBeginAuthURLWithBase returns the OAuth2 authorization URL from the given arguments.
GetClient gets an http.Client authenticated with the specified common.Credentials.
NewOAuth2Tripper creates a new OAuth2Tripper with the given arguments.

# Constants

AccessTypeOffline indicates that the access type is offline.
AccessTypeOnline indicates that the access type is online.
ApprovalPromptAuto indicates that the user will not have to reauthorize access.
ApprovalPromptForce indicates that the user will always have to reauthorize access if the AccessType is online.

# Structs

OAuth2TripperFactory provides the NewTripper function that creates a Tripper object for the OAuth2 authentication protocol.