Include session scopes in TokenView
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
6358294943
commit
23e5eed4e0
3 changed files with 4 additions and 2 deletions
1
changelog.d/token-view-scopes.add
Normal file
1
changelog.d/token-view-scopes.add
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Include session scopes in TokenView
|
|
@ -15,7 +15,8 @@ def render("show.json", %{token: token_entry}) do
|
||||||
%{
|
%{
|
||||||
id: token_entry.id,
|
id: token_entry.id,
|
||||||
valid_until: token_entry.valid_until,
|
valid_until: token_entry.valid_until,
|
||||||
app_name: token_entry.app.client_name
|
app_name: token_entry.app.client_name,
|
||||||
|
scopes: token_entry.scopes
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -69,7 +69,7 @@ test "renders list", %{token: token} do
|
||||||
|> hd()
|
|> hd()
|
||||||
|> Map.keys()
|
|> Map.keys()
|
||||||
|
|
||||||
assert keys -- ["id", "app_name", "valid_until"] == []
|
assert keys -- ["id", "app_name", "valid_until", "scopes"] == []
|
||||||
end
|
end
|
||||||
|
|
||||||
test "revoke token", %{token: token} do
|
test "revoke token", %{token: token} do
|
||||||
|
|
Loading…
Reference in a new issue