provider

package
v0.0.0-...-7fe2d08 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthClient

type OAuthClient interface {
	AuthCodeURL(string, ...oauth2.AuthCodeOption) string
	Exchange(context.Context, string) (*oauth2.Token, error)
	Client(context.Context, *oauth2.Token) *http.Client
}

type OAuthFactory

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

func NewOAuthFactory

func NewOAuthFactory(teamDBFactory db.TeamDBFactory, atcExternalURL string, routes rata.Routes, callback string) OAuthFactory

func (OAuthFactory) GetProviders

func (of OAuthFactory) GetProviders(teamName string) (Providers, error)

type Provider

type Provider interface {
	DisplayName() string

	OAuthClient
	Verifier
}

type Providers

type Providers map[string]Provider

type Verifier

type Verifier interface {
	Verify(lager.Logger, *http.Client) (bool, error)
}

Directories

Path Synopsis
This file was generated by counterfeiter This file was generated by counterfeiter
This file was generated by counterfeiter This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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