Skip to content

Matrix OAuth flow#764

Open
Navy-gif wants to merge 12 commits intoAwesome-Technologies:masterfrom
Navy-gif:matrix-oauth-flow
Open

Matrix OAuth flow#764
Navy-gif wants to merge 12 commits intoAwesome-Technologies:masterfrom
Navy-gif:matrix-oauth-flow

Conversation

@Navy-gif
Copy link
Copy Markdown

Hello. I'm new to matrix and the ecosystem so I'm not certain all of my changes are up to standards, but it seems to work.

I was trying to use this for my matrix instance, but it kept incorrectly saying I didn't have admin access. After some digging I realised it was due to my setup utilising the new(?) Matrix Authentication Service, which meant that the access token the old auth flow returned was a basic user token.

So, what I've done:

  • Added support for dynamic client registration
  • Added support for proper token exchange
  • Added support for token refresh
  • Refactored some of the auth/session management

I've tested this against my own instance, however, since I run MAS, I've not been able to verify this against a setup that doesn't, though I've tried to keep the old flow in place.

@awesome-manuel
Copy link
Copy Markdown
Member

It's a bit too much for a single PR. Please try to move self contained stuff, like changing the router, into a separate PR. Also please don't merge master, instead use rebase.

@awesome-manuel awesome-manuel force-pushed the master branch 6 times, most recently from 4624efc to e6228d5 Compare March 15, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants