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
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Elixir uses binary strings already.
  • Loading branch information
atrauzzi committed Mar 24, 2020
commit 9bf4ff1be7fe8a8b198d02e25a90c4c774bc34fd
2 changes: 1 addition & 1 deletion test/elixir/test/jwtauth_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ defmodule JwtAuthTest do
)

assert resp.body["userCtx"]["name"] == "[email protected]"
assert resp.body["userCtx"]["roles"] == [<<"testing">>]
assert resp.body["userCtx"]["roles"] == ["testing"]
assert resp.body["info"]["authenticated"] == "jwt"
end

Expand Down