gbwisx / msal_mobile

Flutter plugin for single client authentication using the Microsoft Authentication Library (MSAL)
MIT License
10 stars 26 forks source link

Access Token Issue #18

Open DimitriGrey opened 3 years ago

DimitriGrey commented 3 years ago

Hello ,

Hoper that you are well ,

I have used the msal_mobile package in a Flutter app and got it to work and return a access token but when I try and send the token in a graph api call then I get a "invalid audience" issue and I am not sure whether the msal_mobile package brings back a token that can be used by the graph explorer or not or whether I am doing something wrong.

Kind Regards

Kasre96 commented 3 years ago

Hi @DimitriGrey. I guess this has something to do with your Azure AD configuration. I faced a similar issue though on permissions and I had to change my Azure config (authorities).

If you are able to get an access token then your msal_mobile config should be okay.

DimitriGrey commented 3 years ago

Hi @Kasre96 Thank you for the advice , I had a look at the setup in Azure and everything seems to be correct so I am not sure where exactly the issue lies but will keep looking

Kasre96 commented 3 years ago

tempsnip @DimitriGrey this is the config file I'm talking about. The audience depends on what you set as account types when registering the application.