Documentation ¶ Index ¶ Constants func SetUser(c echo.Context, user *User) error func ValidateAuth(c echo.Context, cfgProvider *config.ConfigProviderWithRefresh) error type Claims type IDToken type User func ExchangeCode(ctx context.Context, r *http.Request, config *oauth2.Config, ...) (*User, error) type UserResponse Constants ¶ View Source const ( AuthorizationExtrasHeader = "authorization-extras" ) Variables ¶ This section is empty. Functions ¶ func SetUser ¶ func SetUser(c echo.Context, user *User) error func ValidateAuth ¶ func ValidateAuth(c echo.Context, cfgProvider *config.ConfigProviderWithRefresh) error Types ¶ type Claims ¶ type Claims struct { Email string `json:"email"` EmailVerified bool `json:"email_verified"` Name string `json:"name"` Picture string `json:"picture"` } type IDToken ¶ added in v2.2.0 type IDToken struct { RawToken string Claims *Claims } type User ¶ type User struct { OAuth2Token *oauth2.Token IDToken *IDToken } func ExchangeCode ¶ func ExchangeCode(ctx context.Context, r *http.Request, config *oauth2.Config, provider *oidc.Provider) (*User, error) type UserResponse ¶ added in v2.7.0 type UserResponse struct { AccessToken string IDToken string Name string Email string Picture string } Source Files ¶ View all Source files auth.go oidc.go Click to show internal directories. Click to hide internal directories.