r007
July 30, 2018, 5:20am
1
Hi,
I am getting a 404 error when i try to login with the sign in widget hosted on my application’s web page (Javascript/Html). The widget renders fine but when I click on login, I get a 404. I have setup a corresponding SPA in my OKTA org and using the right details.
Config of my widget
signInWidgetConfig = { // Caution editing this section as you may break the demo.
baseUrl: ‘https://dev-836251-admin.oktapreview.com ’,
clientId: ‘0oaftwrjphcP4TLjP0h7’,
// redirectUri: ‘http://localhost:8001/training/login/ ’,
authParams: {
issuer: ‘https://dev-836251-admin.oktapreview.com/oauth2/default ’,
responseType: [‘id_token’, ‘token’],
scopes: [‘openid’, ‘email’, ‘profile’],
},
Config of my app
The 404 error I get:
https://dev-836251-admin.oktapreview.com/error/404?fromURI=%2Foauth2%2Fdefault%2Fv1%2Fauthorize%3Fclient_id%3D0oaftwrjphcP4TLjP0h7%26redirect_uri%3Dhttp%3A%2F%2Flocalhost%3A8001%2Fsabweb%2Ftraining%2Flogin%2F%26response_type%3Did_token%20token%26response_mode%3Dokta_post_message%26state%3DBD18zkJgxiyxD2Tg1DPUXtUGseZqr54nroaLLXGTexbiiH94zBb0TXqrANx2cWsS%26nonce%3DNSw6SB8MDCEN7Ehw1qDHX8IJedbBPFtYff8qCqRk0tdUJ9H7tfPYDgOcr126IX7W%26prompt%3Dnone%26sessionToken%3D20111IFujZILQpL9_MAYitbaX2E3jPeMnKklv4JL_Xh_eGPGEOBEcAh%26scope%3Dopenid%20email%20profile
tom
July 31, 2018, 6:26pm
2
Use default
for the issuer
Remove -admin
from the baseUrl
Make sure you are using the latest version of the widget
I think that should resolve the issue.
system
Closed
January 12, 2024, 11:26pm
3
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.