I am following the Quickstart
and the Java spring boot sample
I have created an Okta client and followed the instructions - except i had to set login redirect uri =
http://localhost:8080 (as opposed to http://localhost:8080/login/callback)
I have set the environment variables as follows:
Front End:
okta.oauth2.issuer={my_url};okta.oauth2.client-id={my_client_id}
Resource Server:
okta.oauth2.issuer={my_url}
Client configuration:
- AppType=Web,
- AuthCode grant type is checked
- User Consent is checked
- All uris set to http:/localhost:8080 - the FrontEnd url
Started both apps. When I enter my credentials and hit sign in.
https://dev-xxx.okta.com/oauth2/default/v1/token fails with
401
{“error”:“invalid_client”,“error_description”:“Client authentication failed. Either the client or the client credentials are invalid.”}
I have verified that the client-id is correct but cannot find the location where the /token call is made from. It looks like the auth_code grant type is being used.