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

Add support for roles to be obtained from JWTs. #2694

Merged
merged 16 commits into from
Mar 24, 2020

Conversation

atrauzzi
Copy link
Contributor

@atrauzzi atrauzzi commented Mar 21, 2020

As a followon to #2648, I'd like to include support for roles in JWTs.

Chalk this up to my newness with couchdb, I thought simply being an admin user would inherit roles 😉

Basically I need a way to allow my servers to generate short lived _admin tokens to perform admin commands from my main application logic. Example: Ensuring per-user databases are provisioned.

src/couch/src/couch_httpd_auth.erl Outdated Show resolved Hide resolved
test/elixir/test/jwtauth_test.exs Outdated Show resolved Hide resolved
@atrauzzi atrauzzi requested a review from rnewson March 21, 2020 20:52
@atrauzzi atrauzzi requested a review from rnewson March 22, 2020 02:45
@atrauzzi atrauzzi requested a review from rnewson March 23, 2020 20:05
@rnewson
Copy link
Member

rnewson commented Mar 24, 2020

@atrauzzi one tiny change to make and then please rebase and squash this so I can merge. And thanks!

@atrauzzi atrauzzi requested a review from rnewson March 24, 2020 17:20
@rnewson rnewson merged commit 1890168 into apache:master Mar 24, 2020
@atrauzzi atrauzzi deleted the jwt-add-role-support branch May 11, 2020 13:35
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.

None yet

2 participants