
00ujezg2z5NWiWWBt0h1.5503794522060852E12 (Customer) asked a question.
the okta reactjs sdk in github says just enable features: {idpDiscovery: true} - I did that, then from okta it takes me to the external IDP and once I login there it takes me back to the okta profile page for the user !!
Then some links said add idpDiscovery: {requestContext: window.location.href} - I did that, it takes me back to my login page, but then how do I get the tokens etc.. ?
Need some clear example on this please

Hello @00ujezg2z5NWiWWBt0h1.5503794522060852E12 (Customer)
Please check the following link with information:https://support.okta.com/help/s/article/IDP-Discovery-in-Custom-Widget-not-triggering-routing-rule-for-application?language=en_UShttps://developer.okta.com/code/javascript/okta_sign-in_widget/#sign-in-to-okta-with-the-default-dashboard
Also, feel free to post this question on our Okta Developer Forums: https://devforum.okta.com, and they should be able to help you with this.
Regards,