Commit aa923085 authored by Benoit Alessandroni's avatar Benoit Alessandroni

Some little fixes

parent 66ab7f31
......@@ -7,8 +7,8 @@ This project is a Python module, compatible with Django REST Framework and Djang
Here is the detailed explaination of the preferred installation process.
Depending on your OS and your python installation, commands could have to be run using either `python` or `python3`.
##### Manage many project at same time
If you'll have to work on many project at the same time, we recommande to use virtualenvwrapper.
##### Manage many projects at the same time
If you'll have to work on many projects at the same time, we recommande to use virtualenvwrapper.
https://virtualenvwrapper.readthedocs.io/en/latest/
If you're not using virtualenvwrapper, create the python virtual environnement dedicated to the project
......@@ -31,7 +31,7 @@ sib startproject coopstarter
cd coopstarter
```
Open the folder "package.yml", and replace the content of 'ldppackages :' by :
Open the file "packages.yml", and replace the content of 'ldppackages :' by :
```
oidc_provider: 'git+https://github.com/jblemee/django-oidc-provider.git@develop'
django_countries: django_countries
......@@ -89,34 +89,8 @@ python manage.py migrate
And run the loaddata command once more.
If you get a error message like : `django.db.utils.OperationalError: no such table: coopstarter_data_mymissingtable, please run :
`
```
python3 manage.py migrate --run-syncdb
```
## OpenIDConnect configuration
This server uses the [Django OIDC provider](https://django-oidc-provider.readthedocs.io/en/latest/sections/installation.html) library to allow distributed authentication.
This needs to be configured. You first need to login as an administrator, and then go to the OpenIdConnect Provider section of the backend.
Please select:
- Public as *Client Type*
- id_token **token** (implicit flow) as *Response Type*
```
http://localhost:3000
http://localhost:9000
http://127.0.0.1:3000
http://127.0.0.1:9000
http://0.0.0.0:3000
http://0.0.0.0:9000
http://localhost:8001
https://staging-app.happy-dev.fr
http://localhost?goto=http://some.url
```
as *Redirect URIs*
- Then check the generated client ID and keep it somewhere.
\ No newline at end of file
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment