We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8b9781 commit e38a45eCopy full SHA for e38a45e
1 file changed
lib/cadet/auth/providers/openid/nus_entra_id_claim_extractor.ex
@@ -30,9 +30,9 @@ defmodule Cadet.Auth.Providers.NusEntraIdClaimExtractor do
30
defp map_key_to_raw(key), do: key
31
32
defp get_userinfo(claims, key) do
33
- with true <- check_allowed_domain(data),
+ with true <- check_allowed_domain(claims),
34
mapped_key <- map_key_to_raw(key),
35
- value when not is_nil(value) <- Map.get(data, mapped_key) do
+ value when not is_nil(value) <- Map.get(claims, mapped_key) do
36
value
37
else
38
false -> nil
0 commit comments