When attempting to authenticate with Okta oneID in Pre-Prod, it neither loads nor redirects to the application’s home page.
The URL that the application accesses is:
Apache logs:
[php:error] […] PHP Fatal error: Uncaught Exception: authorization server returned an error: **access_denied** in /appl/www/RMS_DEV/releases/17/index.acesso.php:153
Line 153 contains this code snippet:
if(!empty($_GET[‘error’])) {
throw new Exception("authorization server returned an error: ".$\_GET\['error'\]);
}
The IdP responded with error=access_denied and error_description=User is not assigned to the client application. — this comes directly from Okta and is the root cause.
After that, the application throws state does not match and variable not initialized warnings because the OAuth flow was interrupted.
Apache logs:
[php:error] […] PHP Fatal error: Uncaught Exception: authorization server returned an error: **access_denied** in /appl/www/RMS_DEV/releases/17/index.acesso.php:153
Line 153 contains this code snippet:
if(!empty($_GET[‘error’])) {
throw new Exception("authorization server returned an error: ".$\_GET\['error'\]);
}
The IdP responded with error=access_denied and error_description=User is not assigned to the client application. — this comes directly from Okta and is the root cause.
After that, the application throws state does not match and variable not initialized warnings because the OAuth flow was interrupted.
The problem was found; we had a load balancer change, and the proxy didn’t come up. The network team fixed it, and I was able to authenticate with Okta oneID in the application.
After trying everything, I didn’t know I needed the proxy to authenticate with Okta oneID.