ory

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const IdentityContextKey = "identity"

Variables

This section is empty.

Functions

This section is empty.

Types

type Identity

type Identity struct {
	ID string `json:"id"`
}

type Middleware

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

func NewMiddleware

func NewMiddleware(
	wellKnownURL string,
	opts ...MiddlewareOption,
) *Middleware

func (*Middleware) NegroniHandler

func (h *Middleware) NegroniHandler() negroni.Handler

type MiddlewareOption

type MiddlewareOption func(*middlewareOptions)

func MiddlewareDebugEnabled

func MiddlewareDebugEnabled() MiddlewareOption

func MiddlewareExcludePaths

func MiddlewareExcludePaths(paths ...string) MiddlewareOption

func MiddlewareWithErrorHandler

func MiddlewareWithErrorHandler(errorHandler func(w http.ResponseWriter, r *http.Request, err string)) MiddlewareOption

type Session

type Session struct {
	Identity Identity `json:"identity"`
}

func SessionFromRequest

func SessionFromRequest(r *http.Request) (*Session, error)

Jump to

Keyboard shortcuts

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