Documentation
¶
Index ¶
- Constants
- func SetSessionStart(c echo.Context, maxSessionDuration time.Duration)
- func SetUser(c echo.Context, user *User) error
- func SetVerifier(v *oidc.IDTokenVerifier)
- func ValidateAuthHeaderExists(c echo.Context, cfgProvider *config.ConfigProviderWithRefresh) error
- func ValidateSessionDuration(c echo.Context, maxSessionDuration time.Duration) error
- type Claims
- type IDToken
- type User
- type UserResponse
Constants ¶
View Source
const (
AuthorizationExtrasHeader = "authorization-extras"
)
Variables ¶
This section is empty.
Functions ¶
func SetSessionStart ¶ added in v2.45.2
SetSessionStart sets a cookie with the current timestamp to track when the session began. This should only be called on initial login, NOT on token refresh.
func SetVerifier ¶ added in v2.45.2
func SetVerifier(v *oidc.IDTokenVerifier)
func ValidateAuthHeaderExists ¶ added in v2.16.0
func ValidateAuthHeaderExists(c echo.Context, cfgProvider *config.ConfigProviderWithRefresh) error
ValidateAuthHeaderExists validates that the autorization header exists if auth is enabled. User autorization should be done in the frontend by claim-mapper and authorizer plugins. See https://docs.temporal.io/security#authentication
Types ¶
Click to show internal directories.
Click to hide internal directories.