oauthprovider

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	// contains filtered or unexported fields
}

func NewProvider

func NewProvider(envType string, oauth1Config, oauth2Config io.Reader) (*Provider, error)

func (*Provider) OAuth1Configs

func (p *Provider) OAuth1Configs(sid domain.IntegrationID) (*oauthplain.Config, bool)

func (*Provider) OAuth1Exchange

func (p *Provider) OAuth1Exchange(sid domain.IntegrationID, accountName, oAuthToken, oAuthVerifier string) (*oauthplain.Token, error)

func (*Provider) OAuth2Configs

func (p *Provider) OAuth2Configs(sid domain.IntegrationID) (*oauth.Config, bool)

func (*Provider) OAuth2Exchange

func (p *Provider) OAuth2Exchange(sid domain.IntegrationID, code string) (*oauth.Token, error)

func (*Provider) OAuth2Refresh

func (p *Provider) OAuth2Refresh(cfg *oauth.Config, token *oauth.Token) error

func (*Provider) OAuth2URL

func (p *Provider) OAuth2URL(sid domain.IntegrationID) string

Jump to

Keyboard shortcuts

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