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

[Bug] Get token for client with ADFS throws null ref due to TokenType #2636

Closed
jennyf19 opened this issue May 17, 2021 · 4 comments · Fixed by #2640
Closed

[Bug] Get token for client with ADFS throws null ref due to TokenType #2636

jennyf19 opened this issue May 17, 2021 · 4 comments · Fixed by #2640

Comments

@jennyf19
Copy link
Collaborator

Throws a null ref in GetKey() on the TokenType being null when trying to save the access token.

not sure if related:
Also, the tenantId when using ADFS is null, so the cache key is missing the tenantId, and looks like the following:
567794c8-a349-4ye3-672a-9947accbde95__AppTokenCache

and this is the authority: https://127.0.0.1/adfs/

See this line.

@mancyc
Copy link

mancyc commented May 17, 2021

msal_Vervose_logs.txt

I saw this issue with latest Msal 4.30.1 as well as 4.28.1.
Attached verbose logging output

@bgavrilMS
Copy link
Member

For the null ref, it is probably an old version of ADFS. We have integration tests with ADFS 2019 and token_type is present in the response. Can someone confirm the version of ADFS used?

For the cache key observation - ADFS was designed to be single-tenant, you can't have more than 1 tenant per ADFS server, so tenant_id is indeed null and the cache key looks ok.

@jennyf19 jennyf19 removed the P1 label May 18, 2021
@jennyf19
Copy link
Collaborator Author

not a P1, ADFS set up issue, but still a bug in MSAL.

@mancyc
Copy link

mancyc commented May 18, 2021

@bgavrilMS We are using WS2019, so ADFS version is 2019. I will check with ADFS team to check the setup on why it is returning empty fields in the token request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants