-
Notifications
You must be signed in to change notification settings - Fork 9
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
Bug: GeoServer GeoNode oauth not correctly configured #121
Comments
@AlexGacon Are you sure the error you got is related a missing To what I see, configuration of the OAuth/GeoServer in the GeoNode setup is very confusing and error prone:
@mwallschlaeger I am hesitant to take over the dublication/redundancy parts from upstream here as long as we can. IMHO there is a lot to do on the upstream. What is your opinion on this issue? |
You're right, I mentionned the wrong variable: the one I meant is |
@AlexGacon the PR you linked set these wrong parameter as well (you fixed them there as well already). Could you please double check, if setting those (or not) really does make a change?
|
I was spinning my head about this topic some time ago. As @ridoo already mentioned this is a topic under construction in for the next geonode release 4.2 . If your proposed fix is working for geonode 4.1.3 i would suggest to add it to geonode-k8s. But with the the upcomming geonode 4.2 there are new changes required as the geoserver image entrypoint changes. |
Setting just GEONODE_LB_PORT is not enough, since we end up with a GEONODE URL mixing http schema and 443 port. As pointed by @ridoo, using SUBSTITUTION_URL is indeed a better way and make all works. I will update my PR this way. |
Bug Description
When deploying geonode-k8s on my Azure K8s with an external domain, the integration between geonode and geoserver does not work correctly (the upload of data does not complete and layers cannot be displayed on preview and on map).
The configuration of the GeoNode oauth services in GeoServer always points to a 8000 port, even when an external domain is defined. Thus some endpoints point to a URL like http://my_nice_domain:8000 which is not allowed by the external domain.
Reproduction Steps
Behavior
At GeoServer level, the GEONODE_LB_PORT env variable must be set (setting it in the K8s deployment object solves the issue).
Two options:
Additional Information
Any additional information or context that may be helpful in resolving the bug.
The text was updated successfully, but these errors were encountered: