Maybe an obvious one but are you using the correct clientid to identify with your okta app?
Also is it possible to show me which request you are sending to okta? That could give us more insight.
Thanks for your response, I have double checked the clientId and it is correct.
It’s all working, except the redirect. After the redirect error, if you go back then it will load without the error because Okta is not doing redirect.
Here’s the code I am using, i have redacted sensitive field values:
Thank you,
The authorization request looks fine at first glance. However I have a little concern about ```
redirect_uri=" + window.location.href
If my javascript knowledge doesn’t let me down this means you take the current url you are in? (what you see in your browser window all the way at the top).
A redirect uri is usually static so I don’t think it is an issue you just but the URI in there, also with things like this Okta is really careful with CORS so make sure to whitelist your application.
So I decided to try it with a parameter and that fixed it for that view, as I have 7 different views and three different environments, 21 entries all together. So my redirect whitelist looks something like this, but with all environments and all possible view= parameters. (I can only post 5 links)
Thanks for your help in this, i probably wouldn’t have thought to try adding the parameter to the redirect whitelist without your suggestion to look at the window.location.href value.