wip: account details from az and the token
This commit is contained in:
1 parent
87d98d038d
commit
482e0805b7
6 files changed
+218
-17
No files matched your search
@@ -181,11 +181,11 @@ func TestTokenUser(t *testing.T) {
|
||||
`{"upn":"alice@contoso.com"}`: false,
|
||||
`{"appid":"00000000-0000-0000-0000-000000000000"}`: false,
|
||||
} {
|
||||
if _, got := tokenUser(jwt(claims), users); got != want {
|
||||
if _, got := tokenUser(tokenClaims(jwt(claims)), users); got != want {
|
||||
t.Errorf("%s: %v", claims, got)
|
||||
}
|
||||
}
|
||||
if _, got := tokenUser("not-a-jwt", users); got {
|
||||
if _, got := tokenUser(tokenClaims("not-a-jwt"), users); got {
|
||||
t.Error("not a JWT")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user