summaryrefslogtreecommitdiff
path: root/app/middleware/id_token.go
AgeCommit message (Collapse)Author
2025-05-28refactor: parse headers injected by envoymo khan
2025-05-26fix: do not clear id_token cookie on errormo khan
2025-05-26refactor: parse id token from custom x-jwt-payload headermo khan
2025-05-23feat: add external authorization service (authzd) with JWT authenticationmo khan
- Add new authzd gRPC service implementing Envoy's external authorization API - Integrate JWT authentication filter in Envoy configuration with claim extraction - Update middleware to support both cookie-based and header-based user authentication - Add comprehensive test coverage for authorization service and server - Configure proper service orchestration with authzd, sparkled, and Envoy - Update build system and Docker configuration for multi-service deployment - Add grpcurl tool for gRPC service debugging and testing This enables fine-grained authorization control through Envoy's ext_authz filter while maintaining backward compatibility with existing cookie-based authentication.
2025-05-15refactor: decouple from oauth configmo khan
2025-05-15refactor: remove oidc.OpenID structmo khan
2025-05-15refactor: inline usage of validate id tokenmo khan
2025-05-11refactor: use same cookie names as envoy pluginmo khan
2025-05-08feat: use a cookie prefix to lock down the session cookiemo khan
> __Host-: If a cookie name has this prefix, it's accepted in a > Set-Cookie header only if it's also marked with the Secure attribute, > was sent from a secure origin, does not include a Domain attribute, > and has the Path attribute set to /. In other words, the cookie is > domain-locked. https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies#cookie_prefixes
2025-05-07refactor: extract helper to log errors consistentlymo khan
2025-05-07refactor: move cookie to web packagemo khan
2025-04-30refactor: delegate to cookie.Reset to overload with optionsmo khan
2025-04-28refactor: extract method to validate id tokenmo khan
2025-04-28feat: use htmx to render partialsmo khan
2025-04-25refactor: move key pacakge to cfgmo khan
2025-04-25refactor: move db and mountable to appmo khan