Versions in this module Expand all Collapse all v1 v1.0.0 Jan 12, 2025 Changes in this version + func IdTokenFromContext(c *fiber.Ctx) *gooidc.IDToken + type Config struct + AuthCookieName string + CallbackPath string + ClientId string + ClientSecret string + Issuer string + LoginStateEncoder func(c *fiber.Ctx) (string, error) + LoginSuccessHandler func(state string, c *fiber.Ctx) error + RedirectUri string + Scopes []string + Unauthorized fiber.Handler + func (cfg *Config) WithDefaults() *Config + func (obj *Config) Validate() error + type FiberOidc interface + CallbackHandler func() fiber.Handler + CallbackPath func() string + ProtectedApp func(routeProtector RouteProtectorFunc) fiber.Handler + ProtectedRoute func() fiber.Handler + UnprotectedRoute func() fiber.Handler + func New(ctx context.Context, config *Config) (FiberOidc, error) + type FiberOidcStruct struct + Config *Config + IdTokenVerifier *gooidc.IDTokenVerifier + OidcConfig *oauth2.Config + OidcProvider *gooidc.Provider + func (obj *FiberOidcStruct) CallbackHandler() fiber.Handler + func (obj *FiberOidcStruct) CallbackPath() string + func (obj *FiberOidcStruct) ProtectedApp(routeProtector RouteProtectorFunc) fiber.Handler + func (obj *FiberOidcStruct) ProtectedRoute() fiber.Handler + func (obj *FiberOidcStruct) UnprotectedRoute() fiber.Handler + type RouteProtectorFunc func(c *fiber.Ctx) (bool, error)