Documentation ¶
Overview ¶
auth0 contains a Go implementation of Auth0's PKCE support: https://auth0.com/docs/api-auth/tutorials/authorization-code-grant-pkce
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePKCEChallengeS256 ¶
func CreatePKCECodeVerifier ¶
func CreatePKCECodeVerifier() string
Types ¶
type PKCEAuthorizationUrlInfo ¶
type PKCEAuthorizationUrlInfo struct { Host string `url:"-"` Audience string `url:"audience"` Scope string `url:"scope"` ResponseType string `url:"response_type"` ClientId string `url:"client_id"` CodeChallenge string `url:"code_challenge"` CodeChallengeMethod string `url:"code_challenge_method"` RedirectUri string `url:"redirect_uri"` }
type PKCETokenUrlInfo ¶
type PKCETokenUrlInfo struct { Host string `json:"-"` GrantType string `json:"grant_type"` ClientId string `json:"client_id"` CodeVerifier string `json:"code_verifier"` Code string `json:"code"` RedirectUri string `json:"redirect_uri"` }
func (*PKCETokenUrlInfo) Body ¶
func (tu *PKCETokenUrlInfo) Body() ([]byte, error)
func (*PKCETokenUrlInfo) URL ¶
func (tu *PKCETokenUrlInfo) URL() string
Click to show internal directories.
Click to hide internal directories.