exampleop

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogin

func NewLogin(authenticate authenticate, callback func(context.Context, string) string, issuerInterceptor *op.IssuerInterceptor) *login

func SetupServer

func SetupServer(issuer string, storage Storage, extraOptions ...op.Option) *mux.Router

SetupServer creates an OIDC server with Issuer=http://localhost:<port>

Use one of the pre-made clients in storage/clients.go or register a new one.

Types

type Storage

type Storage interface {
	op.Storage
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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