zitadel/internal/api/http/middleware
Elio Bischof 8f6cb47567
fix: use triggering origin for notification links (#6628)
* take baseurl if saved on event

* refactor: make es mocks reusable

* Revert "refactor: make es mocks reusable"

This reverts commit 434ce12a6a.

* make messages testable

* test asset url

* fmt

* fmt

* simplify notification.Start

* test url combinations

* support init code added

* support password changed

* support reset pw

* support user domain claimed

* support add pwless login

* support verify phone

* Revert "support verify phone"

This reverts commit e40503303e.

* save trigger origin from ctx

* add ready for review check

* camel

* test email otp

* fix variable naming

* fix DefaultOTPEmailURLV2

* Revert "fix DefaultOTPEmailURLV2"

This reverts commit fa34d4d2a8.

* fix email otp challenged test

* fix email otp challenged test

* pass origin in login and gateway requests

* take origin from header

* take x-forwarded if present

* Update internal/notification/handlers/queries.go

Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>

* Update internal/notification/handlers/commands.go

Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>

* move origin header to ctx if available

* generate

* cleanup

* use forwarded header

* support X-Forwarded-* headers

* standardize context handling

* fix linting

---------

Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>
2023-10-10 13:20:53 +00:00
..
access_interceptor.go perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
auth_interceptor.go feat(api): new session service (#5801) 2023-05-05 15:34:53 +00:00
cache_interceptor_test.go fix: improvements for login and oidc (#227) 2020-06-17 08:06:40 +02:00
cache_interceptor.go fix: caching of assets (correct headers and versioned avatar and variables.css url) (#4118) 2022-08-16 05:04:36 +00:00
call_interceptor.go perf: query data AS OF SYSTEM TIME (#5231) 2023-02-27 22:36:43 +01:00
cors_interceptor.go fix(CORS): add X-Requested-With to Access-Control-Request-Headers (#5009) 2023-01-09 13:37:10 +01:00
csp.go feat: enable iframe use (#4766) 2022-12-14 07:17:36 +01:00
instance_interceptor_test.go feat: add quotas (#4779) 2023-02-15 02:52:11 +01:00
instance_interceptor.go fix: instance interceptors return NotFound (404) error for unknown hosts (#4184) 2022-08-17 06:07:41 +00:00
metrics_interceptor.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
origin_interceptor.go fix: use triggering origin for notification links (#6628) 2023-10-10 13:20:53 +00:00
robots_tag_interceptor_test.go fix: introduce measures to avoid bots crawling and indexing activities (#5728) 2023-05-05 10:25:02 +02:00
robots_tag_interceptor.go fix: introduce measures to avoid bots crawling and indexing activities (#5728) 2023-05-05 10:25:02 +02:00
security_headers.go feat: enable iframe use (#4766) 2022-12-14 07:17:36 +01:00
telemetry_interceptor.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
user_agent_cookie.go fix: set samesite to none for user agent cookie for iframe usage (#6162) 2023-07-10 07:51:56 +02:00