Error on redirect urls

Hi, I am using com.auth0.AuthenticationController on my backend for the login. I have configured it to have a nginx reverse proxy to have secure connection (https). I have updated all the setting in the auth0 application to have https and http. Currently on function call authenticationController.handle(request, response); I receive the following error and can’t find the cause of it.

spring           | 
spring           | com.auth0.exception.APIException: Request failed with status code 403: The redirect URI is wrong. You sent http://localhost, and we expected https://localhost
spring           |      at com.auth0.net.ExtendedBaseRequest.createResponseException(ExtendedBaseRequest.java:128) ~[auth0-1.19.0.jar:1.19.0]

Please include the following information in your post:

  • SDK com.auth0 (maven)
  • Version 1.4.0
  • Platform Version: java

The message says you sent http://localhost and they expected httpS://localhost (note the “S”).

John

yeah I know that was the issue, but I figured it out. The issue was that the nginx reverse proxy was sending to the server which got http request and caused the error. Thanks for your response.

1 Like

Glad you have figured it out and thanks for sharing with the rest of community!

1 Like

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