userinfo

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(
	endpoint string, at string,
) (map[string]any, *oidcreqres.OIDCErrorResponse, error)

Get obtains the userinfo response from the passed endpoint

func GetFromProvider

func GetFromProvider(
	provider model.Provider, at string,
) (map[string]any, *oidcreqres.OIDCErrorResponse, error)

GetFromProvider obtains the userinfo response from the model.Provider's userinfo endpoint

func GetUserAttributes

func GetUserAttributes(
	rlog log.Ext1FieldLogger, oidcTokenRes *oidcreqres.OIDCTokenResponse, provider model.Provider,
	attributes ...string,
) map[string]any

GetUserAttributes returns user attributes for the passed claim names by searching the id token, JWT AT, and userinfo endpoint

Types

This section is empty.

Jump to

Keyboard shortcuts

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