common

package
v0.0.0-...-314c4ad Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2015 License: LGPL-3.0 Imports: 8 Imported by: 2

Documentation

Overview

The common provider package contains all of the cross-provider functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenID

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

func NewSimpleOpenID

func NewSimpleOpenID(realm string, redirectHost string, sessionStore sessions.Store) *OpenID

NewSimpleOpenID creates a new OpenID authentication helper which facilitates establishing an identity and associating it with a secure session cookie. When redirectHost is "", OpenID redirects will use the same hostname as the request.

func (*OpenID) Authenticate

func (oid *OpenID) Authenticate(r *http.Request) (*sessions.Session, error)

func (*OpenID) Callback

func (oid *OpenID) Callback(w http.ResponseWriter, r *http.Request)

func (*OpenID) Email

func (oid *OpenID) Email(session *sessions.Session) string

func (*OpenID) OpRedirect

func (oid *OpenID) OpRedirect(authorityURL string, w http.ResponseWriter, r *http.Request) error

Jump to

Keyboard shortcuts

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