Get Started with Spring Boot, OAuth 2.0, and Okta

Gnanavel

I am getting the error “Authentication Failed: Invalid token, ‘aud’ claim does not contain the expected audience of: api://default” post login redirect to the url “http://localhost:8080/authorization-code/callback”. I followed the guide https://developer.okta.com/…. I have added the setting “okta.oauth2.audience=0oa63cq555ckAt3yY1t7” to application.properties. After which I got the error “Authentication Failed: Invalid token, ‘aud’ claim does not contain the expected audience of: 0oa63cq555ckAt3yY1t7”. How to fix this issue or how could I ignore the ‘aud’ check ? Can some one help me? Thanks in advance!!