oidc

package
v0.0.0-...-a29219d Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var StateStore memoryStore

this is our instance of memoryStore for state validation

Functions

func AccessTokenRequest

func AccessTokenRequest(code, redirectURL string) (accessToken string, err error)

func GenerateAuthURL

func GenerateAuthURL(state, redirectURL string) (authUrl string)

this is the initial request we direct the user's browser to. It is sent to the oidc auth endpoint and starts the whole flow. Defined here: https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest

func GetPublicJWKS

func GetPublicJWKS() (encoded []byte)

func InitProvider

func InitProvider() (err error)

InitProvider will initialize this package. It is REQUIRED to be called first before this package can be of any use

func UserInfoRequest

func UserInfoRequest(accessToken string) (responseBody []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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