mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-13 01:43:37 +01:00
6a909aade2
Consolidate SSO redirects through
`/_matrix/client/v3/login/sso/redirect(/{idpId})`
Spawning from
https://github.com/element-hq/sbg/pull/421#discussion_r1859497330 where
we have a proxy that intercepts responses to
`/_matrix/client/v3/login/sso/redirect(/{idpId})` in order to upgrade
them to use OAuth 2.0 Pushed Authorization Requests (PAR). Instead of
needing to intercept multiple endpoints that redirect to the
authorization endpoint, it seems better to just have Synapse consolidate
to a single flow.
### Testing strategy
1. Create a new OAuth application. I'll be using GitHub for example but
there are [many
options](
|
||
---|---|---|
.. | ||
__init__.py | ||
test_auth.py | ||
test_errors.py | ||
test_filtering.py | ||
test_ratelimiting.py | ||
test_urls.py |