Skip to content
Snippets Groups Projects
Commit f42cacd6 authored by Art's avatar Art :lizard:
Browse files

Update README.md

parent df063350
No related branches found
No related tags found
No related merge requests found
#### Minimal Intro: #### Minimal Intro:
- [SSO](https://lmddgtfy.net/?q=SSO): Single Sign On - [SSO](https://lmddgtfy.net/?q=SSO): Single Sign On
- SLO: Single Log Out - SLO: Single Log Out
...@@ -80,15 +79,12 @@ If you have `nginx` serving pages to users, you might need to configure `x-frame ...@@ -80,15 +79,12 @@ If you have `nginx` serving pages to users, you might need to configure `x-frame
#### Groups and Permissions #### Groups and Permissions
Users receive groups using SSO. For this to work, you need: With `ssoauth` the only way to assign permissions is with groups:
- some groups in your django project (see `django.contrib.auth` groups) - when user logs in, `ssoauth` receives group names from the IDP
- groups with exactly the same names provided by the IDP - if your project has `django.contrib.admin` `Groups` with exactly the same names, as received from the IDP, these groups are assigned to the user (`django.contrib.auth` `User` is automatically created)
- create a group in the IDM - all other groups and permissions are automatically removed from the user (so it's not possible to "patch" what IDP says with some extra rules in the project)
- make sure IDM provides it to the IDP
- make sure IDP provides it to your SP You can predefine some groups in project settings (see `ssoauth` default config for details). These predefined groups will be created automatically (when migrating). For example, a superuser group:
- you might want to predefine some groups in the project settings (see `ssoauth` default config for details)
- these groups will be created automatically (when migrating) and will receive the specified permissions
- e.g. you probably want a superuser group, see the example below
```python ```python
PREDEFINED_GROUPS = { PREDEFINED_GROUPS = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment