okta / samples-js-react

React Auth SDK sample
Other
174 stars 257 forks source link

React Component inside Dynamics 365. #214

Open manishsg opened 3 years ago

manishsg commented 3 years ago

Hi Okta Dev Team,

We are building a react component which needs to call an external API. The react component is hosted in Dynamics 365.

The Dynamics 365 has 2 factor authentication with Okta.

How to enable the OIDC in this react component similar to : https://pcf.gallery/react-aad-msal-pcf/ https://taerimhan.com/using-react-aad-msal-to-call-a-secure-api-from-a-pcf-control/

The challenge we are facing is in the redirect uri and the callback setup.

Any suggestions would be highly appreciated.

Thank you

arvindkrishnakumar-okta commented 3 years ago

@manishsg Thanks for posting!

@shuowu-okta can you assist with this?

manishsg commented 3 years ago

Hi Arvind

Please can you assist with the above request.

Thanks

shuowu commented 3 years ago

@manishsg I am not very familiar with how Dynamics 365 app works. If it follows the pattern of how to build a SPA app, then you can add follow the okta-hosted-login sample and register your app domain in Okta developer console.

There is also a guide to help.