Versions in this module Expand all Collapse all v0 v0.1.0 Aug 8, 2024 Changes in this version + type Address struct + Country string + Formatted string + Locality string + PostalCode string + Region string + StreetAddress string + type Auth struct + func NewAuth(ctx context.Context, c Config) (*Auth, error) + func (a *Auth) BeginAuth(w http.ResponseWriter, r *http.Request) error + func (a *Auth) CompleteAuth(w http.ResponseWriter, r *http.Request, claims any) error + type Claims struct + All map[string]any + func (c *Claims) GetString(key string) string + func (c *Claims) UnmarshalJSON(b []byte) (err error) + type Config struct + AdditionalScopes []string + ClientID string + ClientSecret string + CookieHashSecret []byte + CookieInsecure bool + CookieMaxAge time.Duration + CookiePrefix string + CookieSecret []byte + IssuerURL string + RedirectURL string + type StandardClaims struct + Address *Address + Birthdate string + Email string + EmailVerified bool + FamilyName string + Gender string + GivenName string + Locale string + MiddleName string + Name string + Nickname string + PhoneNumber string + PhoneNumberVerified bool + Picture string + PreferredUsername string + Profile string + Subject string + UpdatedAt int64 + Website string + ZoneInfo string