-
Notifications
You must be signed in to change notification settings - Fork 765
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
Issues with reverse proxy for DevPortal and Publisher #6467
Comments
Anyway, I bypassed the first issue by manually changing the URL and the rest of the stuff seems to work without an issue. Tried creating APIs from the publisher, publish it and invoke it from dev portal. |
Reason for the wrong redirection URL is that we are mandating the port of the webapp URL which is used for redirecting back to webapp (as the state variable). Port is not mandatory in reverse proxy environments. We need to remove that. The fix should go to idp.jag files in both publisher and devportal webapps. |
With the above fix all works fine. |
I also tested with the latest changes and it seems the issue is fixed. |
This is not yet working with different contexts. @isharac is working on it. |
Fixed by wso2/carbon-apimgt#7731 |
Tried to create a reverse proxy for DevPortal and Publisher using below Nginx configuration:
I faced a couple of issues:
For example: see below screenshots for devportal:
State variable has a full URL(It should only be the subresource eg:
/apis
)Because of that, the last redirection to devportal app fails due to the wrong context. Browser will be redirected to the carbon console.
GET /apis/am/v1.0/publisher/swagger.yaml
orGET /apis/am/v1.0/devportal/swagger.yaml
. It received a 500 status code with an error similar to "No message body writer found for .. ". This doesn't reproduce in Linux environments.The text was updated successfully, but these errors were encountered: