common

package
v0.0.0-...-62634f4 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure()

Configure see main.go configure()

func MapClaims

func MapClaims(claims []byte, customClaims *structs.CustomClaims) error

MapClaims populate CustomClaims from userInfo for each configure claims header

func PrepareTokensAndClient

func PrepareTokensAndClient(r *http.Request, ptokens *structs.PTokens, setProviderToken bool, opts ...oauth2.AuthCodeOption) (*http.Client, *oauth2.Token, error)

PrepareTokensAndClient setup the client, usually for a UserInfo request

Types

This section is empty.

Jump to

Keyboard shortcuts

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