Hi everyone,
I have enabled ms login succesfully but I need to get a token that can be passed to graph api and other react components I am using. Unfortunately there is no work around at the moment to providing the token and I have not been able to get the token. ExternalLoginInfo just has the isAuthenticated property.
Thanks in advance.
6 Answer(s)
-
0
Hi @naurinrr
- Are you using Angular version ?
- Could you share how did you implement MS Login ?
Thanks,
-
0
Hi,
I am using ASP NET .CORE MVC and Javascript version and have implemented using the following app settings;
"Microsoft": { "IsEnabled": "true", "ConsumerKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "ConsumerSecret": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" }
I can login successfully but I can't get the token. I am using React componnent in MVC html pages.
Thank you
-
0
I found that if I enable saveTokens option then I get the token in ExternalLoginCallback method in ExternalLoginInfo but login manager does not add it to the loginResult.Identity or loginResult.User even though the user has a token property. Anyway to fix it?
-
0
Hi,
Yes, this is not implemented yet, see https://github.com/aspnetzero/aspnet-zero-core/issues/973. If you can write your opinion to this issue, we can bring it to a closer milestone.
Thanks,
-
0
The link to the issue returns page not found. How can I request Scope (API permissions) when logging in using external microsoft login?
How come I can't make graph api calls even after logging in using MS account? Can you please help as it is causing me major headache when trying to integrate with office 365. Thank you in advance.
-
0
Nevermind, I fixed it. Thanks