forked from osgeolive/OSGeoLive
Added oauth geonode settings, not enabled yet until we install the geoserver plugin
parent
039b952914
commit
f673cae286
|
@ -0,0 +1,18 @@
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"model": "oauth2_provider.application",
|
||||||
|
"pk": 1001,
|
||||||
|
"fields": {
|
||||||
|
"skip_authorization": true,
|
||||||
|
"redirect_uris": "http://localhost:8082/geoserver",
|
||||||
|
"name": "GeoServer",
|
||||||
|
"authorization_grant_type": "authorization-code",
|
||||||
|
"client_type": "confidential",
|
||||||
|
"client_id": "Jrchz2oPY3akmzndmgUTYrs9gczlgoV20YPSvqaV",
|
||||||
|
"client_secret": "rCnp5txobUo83EpQEblM8fVj3QT5zb5qRfxNsuPzCqZaiRyIoxM4jdgMiZKFfePBHYXCLd7B8NlkfDBY9HKeIQPcy5Cp08KQNpRHQbjpLItDHv12GvkSeXp6OxaUETv3",
|
||||||
|
"user": [
|
||||||
|
"admin"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
|
@ -111,6 +111,10 @@ sudo cp -f "$BUILD_DIR/../app-conf/geonode/local_settings.py.sample" \
|
||||||
"$GEONODE_DIR/local_settings.py"
|
"$GEONODE_DIR/local_settings.py"
|
||||||
sudo cp -f "$BUILD_DIR/../app-conf/geonode/sample_admin.json" \
|
sudo cp -f "$BUILD_DIR/../app-conf/geonode/sample_admin.json" \
|
||||||
"$GEONODE_DIR/base/fixtures/sample_admin.json"
|
"$GEONODE_DIR/base/fixtures/sample_admin.json"
|
||||||
|
sudo cp -f "$BUILD_DIR/../app-conf/geonode/default_oauth_apps.json" \
|
||||||
|
"$GEONODE_DIR/base/fixtures/default_oauth_apps.json"
|
||||||
|
sudo cp -f "$BUILD_DIR/../app-conf/geonode/create_db_store.py" \
|
||||||
|
"$GEONODE_DIR/create_db_store.py"
|
||||||
|
|
||||||
#Change GeoServer port in settings.py
|
#Change GeoServer port in settings.py
|
||||||
sed -i -e 's|http://localhost:8080/geoserver/|http://localhost:8082/geoserver/|' \
|
sed -i -e 's|http://localhost:8080/geoserver/|http://localhost:8082/geoserver/|' \
|
||||||
|
@ -135,6 +139,9 @@ django-admin loaddata "$GEONODE_DIR/base/fixtures/initial_data.json" --settings=
|
||||||
# Install sample admin. Username:admin password:admin
|
# Install sample admin. Username:admin password:admin
|
||||||
django-admin loaddata "$GEONODE_DIR/base/fixtures/sample_admin.json" --settings=geonode.settings
|
django-admin loaddata "$GEONODE_DIR/base/fixtures/sample_admin.json" --settings=geonode.settings
|
||||||
|
|
||||||
|
#TODO: Import oauth settings
|
||||||
|
#django-admin loaddata "$GEONODE_DIR/base/fixtures/default_oauth_apps.json" --settings=geonode.settings
|
||||||
|
|
||||||
# Collect static files
|
# Collect static files
|
||||||
django-admin collectstatic --noinput --settings=geonode.settings --verbosity=0
|
django-admin collectstatic --noinput --settings=geonode.settings --verbosity=0
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
@ -149,8 +156,8 @@ echo "Starting GeoServer to update layers in the geonode db"
|
||||||
sleep 90;
|
sleep 90;
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
|
||||||
#TODO: python create_db_store.py
|
#TODO: Create GeoServer store
|
||||||
#TODO: import oauth settings
|
#python "$GEONODE_DIR"/create_db_store.py
|
||||||
|
|
||||||
# run updatelayers
|
# run updatelayers
|
||||||
echo "Updating GeoNode layers..."
|
echo "Updating GeoNode layers..."
|
||||||
|
|
Loading…
Reference in New Issue