You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In our older code path, we rely on the type of ADAL access token i.e. AuthenticationResult.AccessTokenType to set the scheme in AuthenticationHeaderValue for making another request.
new AuthenticationHeaderValue(
scheme: firstPartyAuthResult.AccessTokenType,
parameter: firstPartyAuthResult.AccessToken);
MSAL's AutenticationResult does have AccessToken but it doesn't seem to have AccessTokenType (correct me If I'm wrong).
How do I determine the AccessTokenType for a MSAL auth result? Please don't suggest hardcoding the scheme to Bearer. Thanks in advance.
We are migrating some legacy code in our projects from ADAL to MSAL.
Both ADAL and MSAL return an object of type
AuthenticationResult
after acquiring an access token.In our older code path, we rely on the type of ADAL access token i.e.
AuthenticationResult.AccessTokenType
to set the scheme in AuthenticationHeaderValue for making another request.MSAL's AutenticationResult does have
AccessToken
but it doesn't seem to haveAccessTokenType
(correct me If I'm wrong).How do I determine the
AccessTokenType
for a MSAL auth result? Please don't suggest hardcoding the scheme toBearer
. Thanks in advance.SO thread mirroring this issue: https://stackoverflow.microsoft.com/questions/258737
The text was updated successfully, but these errors were encountered: