storjauth

package
v0.0.0-...-e35ac8e Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeMux

func ServeMux(cfg oidcauth.Config, callback TokenCallback) *http.ServeMux

ServeMux is some rough code that should allow a command line tool to receive a token and invoke the provided callback function when a successful exchange is performed.

Types

type TokenCallback

type TokenCallback func(token *oauth2.Token, encryptionKey []byte)

TokenCallback is invoked by the OIDCServeMux endpoint when we've successfully received and validated the authenticated user session.

Jump to

Keyboard shortcuts

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