Documentation ¶
Index ¶
- func CreateSessionBasedOidcDelegate(resolveUsername func(username string) (int, error), fallbackRedirectUrl string) func(c echo.Context, idToken *oidc.IDToken, state string) error
- func CreateSessionBasedOidcDelegateWithClaims(resolveUsername func(username string) (int, error), fallbackRedirectUrl string, ...) func(c echo.Context, idToken *oidc.IDToken, state string) error
- func GetFlashes(c echo.Context) ([]string, []string, error)
- func GetUserIdFromSession(c echo.Context) (int, error)
- func IsAuthenticated(c echo.Context) bool
- func SetFlash(c echo.Context, key, message string) error
- type OidcMiddleware
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSessionBasedOidcDelegateWithClaims ¶ added in v2.3.0
func GetFlashes ¶ added in v2.2.0
GetFlashes retrieves and clears flash messages for the given keys
func GetUserIdFromSession ¶
func IsAuthenticated ¶
func IsAuthenticated(c echo.Context) bool
Types ¶
type OidcMiddleware ¶
type OidcMiddleware struct { IdpServerUrl string ClientId string ClientSecret string RedirectUrl string Skipper middleware.Skipper // contains filtered or unexported fields }
func NewOidcMiddleware ¶
func NewOidcMiddleware(idpServerUrl string, clientId string, clientSecret string, redirectUrl string, Skipper middleware.Skipper) *OidcMiddleware
func (*OidcMiddleware) CreateOidcCallbackEndpoint ¶
func (oidcMiddleware *OidcMiddleware) CreateOidcCallbackEndpoint(delegate func(c echo.Context, idToken *oidc.IDToken, state string) error) echo.HandlerFunc
func (*OidcMiddleware) CreateOidcMiddleware ¶
func (oidcMiddleware *OidcMiddleware) CreateOidcMiddleware(isAuthenticated func(c echo.Context) bool) echo.MiddlewareFunc
Click to show internal directories.
Click to hide internal directories.