exampleop

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogin

func NewLogin[T storage.User](authenticate authenticate, callback func(context.Context, string) string, pathPrefix string, users map[string]*T) *login[T]

func SetupServer

func SetupServer[T storage.User](issuer string, storage Storage, pathPrefix string, users map[string]*T, 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