Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use something more secure than bearer tokens for auth #259

Open
richvdh opened this issue Oct 26, 2017 · 6 comments
Open

Use something more secure than bearer tokens for auth #259

richvdh opened this issue Oct 26, 2017 · 6 comments
Labels
A-Client-Server Issues affecting the CS API feature Suggestion for a significant extension which needs considerable consideration

Comments

@richvdh
Copy link
Member

richvdh commented Oct 26, 2017

moving access_tokens to the http headers mitigated it, but it's still quite easy to leak an access_token, in which case, you lose. Perhaps we should consider using something like OAuth 1 signatures, like twitter: https://developer.twitter.com/en/docs/basics/authentication/guides/creating-a-signature

@richvdh
Copy link
Member Author

richvdh commented Oct 26, 2017

Another alternative is access_tokens that actually expire, or which have limited powers.

@cuibonobo
Copy link

I'm interested in this also. My concern is that logging in to a 3rd party app gives them access to all of my account data. I would be particularly interested in restricting apps to certain rooms or message types.

@richvdh
Copy link
Member Author

richvdh commented Jun 8, 2020

It's worth noting that OAuth2 deliberately replaced OAuth1's signatures with bearer tokens, basically because signatures were a pita to work with. Maybe it's better just to limit the power (ie, scope) and lifetime of access tokens.

@richvdh
Copy link
Member Author

richvdh commented Jun 8, 2020

related: #636

@richvdh richvdh transferred this issue from matrix-org/matrix-spec-proposals Mar 1, 2022
@hughns
Copy link
Member

hughns commented May 25, 2022

Some related activity:

@richvdh
Copy link
Member Author

richvdh commented Apr 9, 2024

vaguely related: #1780

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Client-Server Issues affecting the CS API feature Suggestion for a significant extension which needs considerable consideration
Projects
None yet
Development

No branches or pull requests

4 participants