Documentation ¶
Index ¶
- Variables
- func AccessTokenRequest(code, redirectURL string) (accessToken string, err error)
- func GenerateAuthURL(state, redirectURL string) (authUrl string)
- func GetPublicJWKS() (encoded []byte)
- func InitProvider() (err error)
- func UserInfoRequest(accessToken string) (responseBody []byte, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var StateStore memoryStore
this is our instance of memoryStore for state validation
Functions ¶
func AccessTokenRequest ¶
func GenerateAuthURL ¶
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 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.