GeoNode integration
Warning
GeoServer Cloud experimental GeoNode integration
Configure GeoNode AuthZN
-
Go to http://localhost/geoserver/ (note the trailing
/).Note
Replace localhost with the DNS of your GeoNode deployment if applicable.
-
Log in as
admin/geoserver.
Create ROLE service
- Navigate to Security -> Users, Groups, Roles -> Services -> Role Services/Add New.
- Select AuthKEY REST.
- Set the following values:
- Name:
geonode REST role service - Base Server URL:
http://django:8000/
- Name:
- Save.
Set up GeoNode OAuth2 security filter chain
- Go to Security -> Authentication -> New auth filter -> GeoNode Oauth2.
- Use the following settings:
- User Authorization URI:
http://localhost/o/authorize/ - Access Token URI:
http://django:8000/o/token/ - Redirect URI:
http://localhost/geoserver/index.html - Check Token Endpoint URL:
http://django:8000/api/o/v4/tokeninfo/ - Logout URI:
http://localhost/account/logout/ - Scopes:
write - Client ID:
geonode - Client Secret:
geonodesecret - ROLE Service:
geonode REST role service
- User Authorization URI:
-
Save.
-
Go to Filter Chains, and add the
geonodefilter chain to the web, rest, gwc, and default chains BEFORE (above) thegateway-shared-authone. -
Save.
-
Logout. You should see the GeoNode login button now in the GeoServer web UI page header.
Now, log in with geonode, and it should work as usual.
Create Workspace and Data Store
Create Workspace
- Go to Workspaces and click on Add new workspace.
- Enter the following information:
- Name:
geonode - Namespace URI:
http://www.geonode.org/ - Check the box for Default workspace.
- Name:
- Save.
Create Data Store
- Go to Stores and select Add new Store -> PostGIS.
- Fill in the following details:
Basic Store Information:
- Workspace:
geonode - Data Source Name:
geonode_data - Enabled: Check this box.
Connection Parameters:
- host:
gndatabase - port:
5432 - database:
geonode_data - schema:
public - user:
geonode_data - password:
geonode_data - Namespace:
http://www.geonode.org/ -
max connections:
10 -
Optionally, check Expose primary keys if needed.
- Click Save.