Forum Discussion
graph toolkit SSO without Login Component
Umag98 - Hello,
Have a look at Microsoft Graph Toolkit providers. You can use Custom provider - Microsoft Graph | Microsoft Docs. Let me know if you need any help.
Thanks,
Hunaid Hanfee
--------------------------------------------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
I tried using the simple provider.
it is not working as expected.
i am using the same here, but it is not working.
- error: {code: "InvalidAuthenticationToken", message: "Access token validation failure. Invalid audience.",…}
- code: "InvalidAuthenticationToken"
- innerError: {date: "2021-08-24T08:27:14", request-id: "494c6420-fedc-4314-b71f-2f8e188a38c1",…}
- message: "Access token validation failure. Invalid audience."
- ChetanSharma-msftAug 26, 2021MicrosoftUmag98 - Looks like your configuration is wrong for token validation "audience".
Could you please reverify & test it again.- Umag98Aug 26, 2021Brass Contributor
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