authutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Verify

func Verify(tokenstring, providerurl string) (*oidc.IDToken, error)

Verify ...

Types

type OIDCStub

type OIDCStub struct {
	ProviderURL *url.URL
	RedirectURL *url.URL
	ClientID    string
	Provider    *oidc.Provider
	Server      *http.Server

	Err          chan error
	OAuth2Config *oauth2.Config
	Audience     string
	State        string
	Token        *oauth2.Token
	Done         chan struct{}
}

OIDCStub ...

func NewOIDCStub

func NewOIDCStub(providerurl, redirectutl, clientid string) (*OIDCStub, error)

NewOIDCStub ...

func (*OIDCStub) CallbackHandler

func (stub *OIDCStub) CallbackHandler(w http.ResponseWriter, r *http.Request)

CallbackHandler ...

func (*OIDCStub) GetTokenString

func (stub *OIDCStub) GetTokenString() string

GetTokenString ...

func (*OIDCStub) Prepare

func (stub *OIDCStub) Prepare(aud string, scope []string)

Prepare ...

func (*OIDCStub) StartFlow

func (stub *OIDCStub) StartFlow() error

StartFlow ...

Jump to

Keyboard shortcuts

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