Skip to content

Conversation

@sandhose
Copy link
Member

@sandhose sandhose commented Apr 10, 2025

Now that we have deduplicated clients, we're in this weird situation where authorization grants just… go through.

This is because 4 years ago, I designed it to support prompt=consent and prompt=none, but that never ended up being used/mentioned in the MSCs.

We also had support for max_age, but that required reauthing, which doesn't work well with upstream providers.

So this removes support for prompt=consent|none and max_age, and makes sure we always go through the consent page.

We'll remove the tables for consent in the N+1 version so that DB rollback is possible

This greatly simplifies the logic for receiving a auth request. Lots of code deleted, yay!

Now that we have deduplicated clients, we're in this weird situation
where authorization grants just… go through.

This is because 4 years ago, I designed it to support prompt=consent and
prompt=none, but that never ended up being used/mentioned in the MSCs.

We also had support for max_age, but that required reauthing, which
doesn't work well with upstream providers.

So this removes support for prompt=consent|none and max_age, and makes
sure we always go through the consent page.

Lots of code deleted, yay!
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 10, 2025

Deploying matrix-authentication-service-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 26dcba6
Status: ✅  Deploy successful!
Preview URL: https://fc0db386.matrix-authentication-service-docs.pages.dev
Branch Preview URL: https://quenting-always-consent.matrix-authentication-service-docs.pages.dev

View logs

@sandhose sandhose marked this pull request as draft April 10, 2025 18:00
@sandhose sandhose force-pushed the quenting/always-consent branch from d3aeafa to 26dcba6 Compare April 11, 2025 13:07
@sandhose sandhose marked this pull request as ready for review April 11, 2025 13:08
@sandhose sandhose requested a review from reivilibre April 11, 2025 13:08
@sandhose sandhose merged commit bd73734 into main Apr 14, 2025
21 checks passed
@sandhose sandhose deleted the quenting/always-consent branch April 14, 2025 13:51
@sandhose sandhose added T-Enhancement New feature of request A-Next-Gen-Auth Related to the next generation authentication APIs labels Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Next-Gen-Auth Related to the next generation authentication APIs T-Enhancement New feature of request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants