You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please verify that this feature request has NOT been suggested before.
I checked and didn't find a similar feature request
Problem statement
Our current token system always inherits the permissions from the current user. This makes tokens possibly pretty dangerous. You also need to refresh tokens by hand when they expire.
Suggested solution
There is a known and widely used protocol to solve these issues: oAuth2. After a few experiments, it seems to integrate pretty nicely with our current stack (mapping the role system).
As a breaking step, I would recommend that we later on remove basic auth and amend the token auth model with the same scopes. Similar to how GitHub handles this.
Activity
matmair commentedon Mar 7, 2025
See #4562 (comment)
matmair commentedon Mar 7, 2025
In testing how complex this could be I made matmair#308 which is probably already 80% there.