package
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Apr 2, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 22
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
ScopeOIDC = "openid"
ScopeProfile = "profile"
)
func (a API) Logout(c echo.Context) error
func (a API) Register(app *echo.Echo) error
func (a API) Token(c echo.Context) error
func (a API) UserInfo(c echo.Context) error
type AccessTknClaims struct {
jwt.RegisteredClaims
UserID string `json:"user_id"`
Scopes []string `json:"scopes"`
}
type IDTknClaims struct {
jwt.RegisteredClaims
SID string `json:"sid"`
}
type Keys struct {
JWKs []JWK `json:"keys"`
}
type LogoutParams struct {
IDTkn string `query:"id_token_hint"`
SID string `query:"logout_hint"`
RedirectURI string `query:"post_logout_redirect_uri"`
ClientID string `query:"client_id"`
State string `query:"state"`
}
type LogoutTknClaims struct {
jwt.RegisteredClaims
Events map[string]struct{} `json:"events"`
SID string `json:"sid"`
}
type UserInfo struct {
Err string `json:"error,omitempty"`
ErrDesc string `json:"error_description,omitempty"`
Email string `json:"email,omitempty"`
AvatarURL string `json:"avatar_url,omitempty"`
}
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.