Forum Discussion
graph toolkit SSO without Login Component
Could you please reverify & test it again.
ChetanSharma-msft '
As I already have a accessToken, i can pass that right, or should i pass the assertion token from the teams ?
- HunaidHanfee-MSFTAug 27, 2021Microsoft
Umag98 : Hello I have tried this with access token I got following this doc: Get access without a user
I tested with the snippet you shared and it worked fine. Could you please tell the endpoint you are using to get access token? Also, it would be better if you can share the whole request(by hiding the private information). Please go through this question to understand more about the error you got :
Access token validation failure. Invalid audience. - Microsoft Q&A- Umag98Aug 27, 2021Brass Contributorour endpoin is :https://login.microsoftonline.com/{0}/oauth2/token
{ "client_id", },
{ "client_secret", },
{ "scope", },
{ "resource", },
{ "grant_type", },
{ "requested_token_use", },
{ "assertion", }- HunaidHanfee-MSFTAug 30, 2021Microsoft
Umag98 :
Hey,
I think you should use this endpoint
https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token
Please follow this:
Get access without a user -> Get an access tokenAlso you need these permissions : link