zitadel/internal/api/authz
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
..
authorization_test.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
authorization.go feat(api): new session service (#5801) 2023-05-05 15:34:53 +00:00
config.go feat: user v2alpha email API (#5708) 2023-04-25 09:02:29 +02:00
context_mock.go feat(api): add OIDC session service (#6157) 2023-07-10 13:27:00 +00:00
context.go fix: use triggering origin for notification links (#6628) 2023-10-10 13:20:53 +00:00
detach.go perf: query data AS OF SYSTEM TIME (#5231) 2023-02-27 22:36:43 +01:00
instance_test.go feat: enable iframe use (#4766) 2022-12-14 07:17:36 +01:00
instance.go feat: add quotas (#4779) 2023-02-15 02:52:11 +01:00
permissions_test.go feat(api): new session service (#5801) 2023-05-05 15:34:53 +00:00
permissions.go feat(api): new session service (#5801) 2023-05-05 15:34:53 +00:00
retry_test.go fix(authz): retry search memberships if no memberships found (#2869) 2021-12-17 16:28:41 +01:00
retry.go fix(authz): retry search memberships if no memberships found (#2869) 2021-12-17 16:28:41 +01:00
token_test.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
token.go feat(API): support V2 token and session token usage (#6180) 2023-07-14 11:16:16 +00:00
user.go feat(api): add and remove OTP (SMS and email) (#6295) 2023-08-02 18:57:53 +02:00