ivangfr / okta-springboot-react

The goal of this project is to implement an application where a user can manage (create/read/update/delete) jobs. For it, we will create: a backend Restful API called jobs-api and a frontend user interface called jobs-ui. Furthermore, we will use Okta to secure the complete application.
12 stars 10 forks source link

Okta authentication benid Nginx reverse proxy #11

Open akshayrrao-Sclera opened 1 year ago

akshayrrao-Sclera commented 1 year ago

I have gone through your code and replicated the configuration but I faced this issue when logging In . I was not able to get the access token and this error was coming in the network tab.

OAuthError: Client authentication failed. Either the client or the client credentials are invalid. https://{your_domain}/oauth2/default/v1/token Status Code: 401 Unauthorized

ivangfr commented 1 year ago

Hi! So, you are having problems running the steps describe at Getting Access Token?

akshayrrao-Sclera commented 1 year ago

once i go to http://localhost:3000/ then when i login entering user id and password it will give me this error ( "Either the client or the client credentials are invalid") in network tab https://{your_domain}/oauth2/default/v1/token got Status Code: 401 Unauthorized due to this its not logging me in to that application

image

ivangfr commented 1 year ago

I'd suggest double-checking if the Okta credentials are valid and informed correctly.

akshayrrao-Sclera commented 1 year ago

no like after Successful authentication i am getting this message image

akshayrrao-Sclera commented 1 year ago

The current configuration works perfectly . However if I want to run your code behind a reverse proxy preferably Nginx could you please tell me what all configuraton changes I should make in the code.