Documentation ¶
Overview ¶
Package internal contains utilities for parsing OAuth2 tokens
Package internal includes functions to support OAuth/OIDC
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAccessTokenResponse ¶
ParseAccessTokenResponse parses an RFC6749 access token response and returns either an `*oauth2.Token` on success, an `*ErrorTokenResponse` on failure, or any other error if the response cannot be parsed. See: https://datatracker.ietf.org/doc/html/rfc6749#section-5
Types ¶
type ErrorTokenResponse ¶
type ErrorTokenResponse struct { Code string `json:"error"` Description string `json:"error_description,omitempty"` URI string `json:"error_uri,omitempty"` }
ErrorTokenResponse represents an RFC6749 access token error response. See: https://datatracker.ietf.org/doc/html/rfc6749#section-5.2
func (*ErrorTokenResponse) Error ¶
func (e *ErrorTokenResponse) Error() string
Error implements `error`
Click to show internal directories.
Click to hide internal directories.