Skip to content

Commit

Permalink
Merge pull request #33973 from dimagi/jc/add-new-fields-in-identity-p…
Browse files Browse the repository at this point in the history
…rovider

Add new fields in IdentityProvider
  • Loading branch information
jingcheng16 authored Feb 6, 2024
2 parents f2f4a5d + 3267e71 commit 22fa186
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Generated by Django 3.2.23 on 2024-01-19 12:22

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('sso', '0005_alter_identityprovider_idp_type'),
]

operations = [
migrations.AddField(
model_name='identityprovider',
name='api_host',
field=models.TextField(default=''),
),
migrations.AddField(
model_name='identityprovider',
name='api_id',
field=models.TextField(default=''),
),
migrations.AddField(
model_name='identityprovider',
name='api_secret',
field=models.TextField(default=''),
),
migrations.AddField(
model_name='identityprovider',
name='date_api_secret_expiration',
field=models.DateField(blank=True, null=True),
),
migrations.AddField(
model_name='identityprovider',
name='enable_user_deactivation',
field=models.BooleanField(default=False),
),
]
7 changes: 7 additions & 0 deletions corehq/apps/sso/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ class IdentityProvider(models.Model):
last_modified = models.DateTimeField(auto_now=True)
last_modified_by = models.EmailField()

# for auto-deactivation web user purposes
enable_user_deactivation = models.BooleanField(default=False)
api_host = models.TextField(default="") # tenant id
api_id = models.TextField(default="") # application (client) id in Azure AD
api_secret = models.TextField(default="")
date_api_secret_expiration = models.DateField(blank=True, null=True)

class Meta:
app_label = 'sso'

Expand Down
1 change: 1 addition & 0 deletions migrations.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1072,6 +1072,7 @@ sso
0003_oidc_onelogin_idp_update
0004_login_enforcement_type_sso_test_user
0005_alter_identityprovider_idp_type
0006_add_new_fields_in_identityprovider
start_enterprise
0001_initial
stock
Expand Down

0 comments on commit 22fa186

Please sign in to comment.