hydra

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2016 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c Config) authkit.AuthService

New creates new Hydra-backed auth service.

Types

type Config

type Config struct {
	HydraURL                 string
	ProviderID               string
	ProviderIDTrustedContext string // used to obtain context from contextCreator for 2-legged flow
	ChallengeLifespan        time.Duration
	OAuth2Config             *oauth2.Config            // for 3-legged flow
	ClientCredentials        *clientcredentials.Config // for 2-legged flow
	OAuth2State              authkit.OAuth2State
	ContextCreator           authkit.ContextCreator
	TLSInsecureSkipVerify    bool
}

Config represents configuration for hydra.New().

func (Config) Valid

func (c Config) Valid() bool

Valid validates configuration.

Jump to

Keyboard shortcuts

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