-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
… authentication Completed support for portal / agol. Admin and front end limit what's shown based on the logged in users current portal/agol unless superuser. Password auth removed and login form reformatted to show both social auth providers nicely with not username/password fields available.
- Loading branch information
Showing
14 changed files
with
182 additions
and
87 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
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
29 changes: 29 additions & 0 deletions
29
accounts/migrations/0022_agol_portal_name_agoluserfields_auth_provider_and_more.py
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,29 @@ | ||
# Generated by Django 4.1.6 on 2023-02-08 20:16 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('accounts', '0021_add_pk_id_fields'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='agol', | ||
name='portal_name', | ||
field=models.CharField(choices=[('geosecure', 'Geosecure'), ('geoplatform', 'Geoplatform')], blank=True, null=True, max_length=50), | ||
), | ||
migrations.AddField( | ||
model_name='agoluserfields', | ||
name='portal', | ||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.PROTECT, related_name='auth_provider', to='accounts.agol'), | ||
), | ||
migrations.AddField( | ||
model_name='responseproject', | ||
name='portal', | ||
field=models.ForeignKey(default=1, on_delete=django.db.models.deletion.PROTECT, to='accounts.agol'), | ||
), | ||
] |
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
Oops, something went wrong.