AzureAD / MSAL.PS

MIT License
159 stars 29 forks source link

MSAL token provided only works with MS Graph #56

Open elafnit opened 1 year ago

elafnit commented 1 year ago

I have many apps registered in AD exposing apis through APIM. Trying to use the access token provided by Get-MsalToken fails validation-jwt policy in APIM. This process worked previously when using ADAL. It appears the provided token contains a header nounce that isn't standard for jwt. Is there a switch or cmdlet to pull a token via msal that isn't styled for MS Graph exclusively?

jazuntee commented 1 year ago

The MSAL library should work with any API secured by Azure AD. It is not exclusive to MS Graph. Could you provide an example of the command you are attempting run? I would expect your API identifier and scope name to be included via the Scope parameter.