Documentation
¶
Index ¶
- Constants
- func Authorize(c echo.Context) error
- func AuthorizeV2(c echo.Context) error
- func Jwks(c echo.Context) error
- func OidcConfig(c echo.Context) error
- func OpenIDConfigV2(c echo.Context) error
- func ParseExtraClaims(addClaims []byte) (map[string]interface{}, error)
- func Token(c echo.Context) error
- func TokenV2(claims map[string]interface{}) func(c echo.Context) error
- type TokenErrorResponse
- type TokenOKResponse
Constants ¶
View Source
const StdOidcConfigURI = "/.well-known/openid-configuration"
StdOidcConfigURI is the standard endpoint for oidc config
Variables ¶
This section is empty.
Functions ¶
func AuthorizeV2 ¶ added in v0.1.0
func OpenIDConfigV2 ¶ added in v0.1.0
func ParseExtraClaims ¶ added in v0.0.6
Types ¶
type TokenErrorResponse ¶ added in v0.0.5
type TokenErrorResponse struct {
Error string `json:"error"`
ErrorDescription string `json:"error_description"`
ErrorCodes []int `json:"error_codes"`
Timestamp string `json:"timestamp"`
TraceID string `json:"trace_id"`
CorrelationID string `json:"correlation_id"`
}
TokenErrorResponse error type
type TokenOKResponse ¶ added in v0.0.5
type TokenOKResponse struct {
AccessToken string `json:"access_token"`
TokenType string `json:"token_type"`
ExpiresIn string `json:"expires_in"`
ExpiresOn string `json:"expires_on"`
Resource string `json:"resource"`
RefreshToken string `json:"refresh_token"`
Scope string `json:"scope"`
IDToken string `json:"id_token"`
}
TokenOKResponse ok type
Click to show internal directories.
Click to hide internal directories.