common

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 7 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure added in v0.14.0

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