feat(identity): enforce shared session and browser request security
This commit is contained in:
1 parent
7df521bd89
commit
86f562f5b6
23 files changed
+430
-121
No files matched your search
@@ -61,8 +61,9 @@ func NewRouter(
|
||||
// The client address is resolved once, through the trusted proxies only,
|
||||
// for the per-client rate limits of the handlers.
|
||||
router.Use(httpmiddleware.ClientIP(trustedProxies))
|
||||
// Login and logout compare one Origin header value exactly with the
|
||||
// configured public origin. Session metadata never trusts forwarded headers.
|
||||
// Unsafe public identity operations and session CSRF checks compare one
|
||||
// Origin header value exactly with the configured public origin. Session
|
||||
// metadata never trusts forwarded headers.
|
||||
router.Use(httpmiddleware.SessionRequestMetadata())
|
||||
router.Use(httpmiddleware.RequestLog(logger, resolveRoute, healthPath, readinessPath))
|
||||
router.Use(httpmiddleware.CollectMetrics(collector, resolveRoute))
|
||||
|
||||
Reference in new issue
Block a user