error: The ‘redirect_uri’ parameter must be an absolute URI that is whitelisted in the client app settings.
-
I’m not administering the okta setup, but am told the domain is setup in the trusted, and have seen a screenshot of the login redirect uri (points to correct location).
-
If you reload the page, after getting the dev console error msg above, everything works ok (I assume the cookie is set?)
-
same code runs ok on dev, submitting to domain.oktapreview.com without this issue
-
This only occurs if they login to the local login form, does not occur if they are coming in from Okta dashboard (3p c I assume)
-
I’ve reviewed the other redirect_uri issues and have done some of that (lowercase, ask admin to check settings etc)
abbreviated/cleaned code:
signIn.renderEl(
{
el: '#oktaWidget'
},
function success(resp) {
var oktaUserInfo = getOktaUser();
oktaUserInfo.done(function(res){
var ckOkta = ckOkta(res);
ckOkta.done(function(ckOktaRes){
// business logic then
// write a hidden form and pass to normal app login processing
});
});
return;
}
);
function getOktaUser() {
return $.ajax({
type: "get",
url: oktaURL + "/api/v1/users/me",
xhrFields: {
withCredentials: true
}
});
}