exampleop

package
v0.0.0-...-0b341d7 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogin

func NewLogin(authenticate authenticate, callback func(string) string) *login

func SetupServer

func SetupServer(ctx context.Context, issuer string, storage Storage) *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
	CheckUsernamePassword(username, password, id string) (*interface{}, error)
}

Jump to

Keyboard shortcuts

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