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 applications 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
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
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