Files
zitadel/internal/domain
d90285929c fix: enforce organization scopes
# Which Problems Are Solved

- Organization scopes not being enforced in device authorization flow
- No check whether orgs exist in an authorization request

# How the Problems Are Solved

- Logic to get ID/Domain of an organisation is moved to the `Request` interface.
- Added assertion for the org ID/Domain when creating the authorization request.
- Added checks when authorizing the auth / device request with a session to check if a specific organization is enforced.
- Added checks to prevent using a session of a user from another organization if enforces by scope

# Additional Changes

# Additional Context

- Related Issue: #11160

---------

Co-authored-by: Livio Spring <livio@zitadel.com>
Co-authored-by: Max Peintner <peintnerm@gmail.com>

(cherry picked from commit c3a6bdb0bb)
2026-03-17 13:04:01 +01:00
..
2025-07-02 07:34:19 +00:00
2025-06-27 17:25:44 +02:00
2021-05-03 10:15:50 +02:00
2025-03-04 11:09:30 +00:00
2025-05-02 13:44:24 +02:00
2022-10-26 13:06:48 +00:00
2022-04-26 23:01:45 +00:00
2024-09-11 10:53:55 +00:00
2024-08-12 22:32:01 +02:00
2022-04-26 23:01:45 +00:00
2026-03-17 13:04:01 +01:00
2021-03-01 08:48:50 +01:00
2024-04-11 09:16:10 +02:00