-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token Bearer lost after redirect by APISIX #10475
Comments
Could you please check if this exists in the latest version as well? Also, please try to use the admin api for setting up the SSLs. |
Please reformat the configurations with proper indentation and add a title to the issue. |
|
v3.6 is latest and v3.2 is LTS. You can try any of these. |
Do you see anything in error logs? |
Hello, The versions I have currently deployed are: There is no specific error in the logs, but the issue is the 302 redirect that exposes the internal API and the removal of the Bearer token when the request is getting redirected. |
I am also interested to know if the 302 is the expected behavior. |
So, in the end I found the issue thanks to: The only thing missing was the scheme:
|
Maybe it would be a good idea to make this issue more obvious in the documentation. I could only found one mention of this and no examples whatsoever. |
Description
I configured the following route and upstream:
The API Im trying to contact is behind an authentication mechanism (not set by APISIX) that requires me to provide a bearer token whenever I do a request.
My current issue is that when I do a GET request I get the following:
I configured through the Dashboard the SSL. It seems to me that the Bearer token is not being kept when APISIX passes the request to the API.
Another thing that I find weird is that no matter the route that I use (whether behind authentication or not) I always get first a 302 from APISIX that shows the real location of the API Im trying to contact. Is this a known feature of APISIX or did I miss configure something?
Environment
The text was updated successfully, but these errors were encountered: