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

Support multiple token strategies in auth middleware #4030

Merged
merged 2 commits into from
Jul 3, 2023

Conversation

gmgigi96
Copy link
Member

@gmgigi96 gmgigi96 commented Jul 3, 2023

Different HTTP services can in general support different token strategies for validating the reva token, for example all the clients of a the data provider are including the token in the x-access-token header, while the CERNBox web interface is using the bearer authentication.
In this context, without updating every single client a mono process deployment will never work.

Now the HTTP auth middleware accepts in its configuration a token strategy chain, allowing to provide the reva token in multiple places (bearer auth, header).

@cs3org cs3org deleted a comment from update-docs bot Jul 3, 2023
@gmgigi96 gmgigi96 requested a review from a team as a code owner July 3, 2023 08:36
@gmgigi96 gmgigi96 merged commit cf2dcfa into cs3org:master Jul 3, 2023
abaldacchino pushed a commit to abaldacchino/reva that referenced this pull request Aug 25, 2023
* support multiple token strategies in auth middleware

* add changelog
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.

3 participants