-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Daniel Leinfelder
committed
Jan 31, 2019
1 parent
219e47d
commit 7d310e0
Showing
6 changed files
with
207 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,9 +131,21 @@ custom profile endpoint, returns user profile information as json: | |
"email": "[email protected]", | ||
"email_verified": "True", | ||
"is_superuser": "False", | ||
"can_authenticate": "True" | ||
"can_authenticate": "True", | ||
"groups": ["staff", "customer"] | ||
} | ||
```` | ||
|
||
## configuration | ||
- navigate to `/admin/` to setup the OAuth2 uids and secrets. | ||
- navigate to `/admin/` to setup the OAuth2 uids and secrets. | ||
|
||
### setup a profile group and add permissions | ||
setup your first group, eg. default and set the default flag. | ||
all new user will be added to the default flag. for testing, you may need to add the default group for the first admin user by hand. | ||
|
||
as a second step you need to authorize your app by mapping a "Can authenticate" flag between the application and the new default group. | ||
see Group permissions for that. | ||
|
||
you can also add a single permission for a user without the need of generating groups. see: Profile permissions | ||
|
||
there is an option to provide Application groups for a application based on profiles or group permission these groups get returned to the application on the profile call. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.1.5 on 2019-01-31 23:48 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('janus', '0006_applicationextension_profile_replace_json'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='applicationgroup', | ||
name='description', | ||
field=models.TextField(blank=True, default=''), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters