# The web application jumps to the okta login page and reports 400 after login

**URL:** <https://devforum.okta.com/t/the-web-application-jumps-to-the-okta-login-page-and-reports-400-after-login/30453>\
**Category:** OAuth/OIDC\
**Tags:** spring, java\
**Created:** [September 7, 2024, 12:20pm UTC](https://devforum.okta.com/t/the-web-application-jumps-to-the-okta-login-page-and-reports-400-after-login/30453 "2024-09-07T12:20:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsp](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@lsp](https://devforum.okta.com/u/lsp)\
**Post date:** [September 7, 2024, 12:20pm UTC](https://devforum.okta.com/t/the-web-application-jumps-to-the-okta-login-page-and-reports-400-after-login/30453/1 "2024-09-07T12:20:05Z")

</div>

I want to use springboot to integrate okta’s OIDC to achieve single sign-on, and obtain some information of login users and accessToken from my springboot project to complete business requirements. However, after I build the demo, I start the project and access localhost:8080. Jump to the login page provided by okta, when I enter the user name and password configured in the console, okta pops up 400, the picture is as follows:Your request caused an error. The policy evaluation for this request failed. Please check the policy configuration.  
my application`s maven`s dependies as follows:  
  
com.okta.spring  
okta-spring-boot-starter  
1.4.0  
  
  
com.okta.spring  
okta-spring-sdk  
1.4.0

my application.properties as folloows:  
okta.oauth2.issuer=[https://dev-85255207.okta.com/oauth2/default](https://dev-85255207.okta.com/oauth2/default)  
okta.oauth2.client-id=0oajhix6taW9AZn845d7  
okta.oauth2.client-secret=987654321  
okta.oauth2.redirect-uri=/authorization-code/callback  
AND The Sign-in redirect URLs of the project configured in my okta console are as follows:  
[http://localhost:8080/authorization-code/callback](http://localhost:8080/authorization-code/callback)

And I have also authorized the access rights of this project to the users I need to access, but why will I report this 400? Is there anything I missed

---

<div class="post-metadata">

**Author:** ![akash-okta](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@akash-okta](https://devforum.okta.com/u/akash-okta)\
**Post date:** [October 2, 2024, 6:07am UTC](https://devforum.okta.com/t/the-web-application-jumps-to-the-okta-login-page-and-reports-400-after-login/30453/2 "2024-10-02T06:07:20Z")

</div>

Hello there,

Thank you for writing to Okta Devforum. My name is Akash, from Okta.

With regards to the issue that you are facing, it looks like you are using some old or deprecated version of the Okta Spring Boot SDK. Please refer to this page to find the latest SDK - [GitHub - okta/okta-spring-boot: Okta Spring Boot Starter](https://github.com/okta/okta-spring-boot)

In addition to that, please make sure the default custom authorization server that you are using has the Access Policy created and configured properly by referring to this article - [Okta Help Center (Lightning)](https://support.okta.com/help/s/article/policy-evaluation-failed-for-this-request-when-logging-into-openid-connect-app-via-a-custom-authorization-server?language=en_US)

If the Access Policy exist, kindly make sure that the policy is not configured in such a way that it does not block the access to the user.

Do you see any specific details in the System Logs on Okta dashboard for this request in which you are seeing the error?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [November 1, 2024, 6:07am UTC](https://devforum.okta.com/t/the-web-application-jumps-to-the-okta-login-page-and-reports-400-after-login/30453/3 "2024-11-01T06:07:51Z")

</div>

Closed on November 1, 2024, 6:07am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
