Complete SSO role mapping and offline StateCorp release tooling
Some checks failed
State Corp Backend CI/CD / Quality gate (push) Failing after 9m34s
State Corp Backend CI/CD / Build linux/amd64 images once (push) Has been skipped
State Corp Backend CI/CD / Release dev (push) Has been skipped
State Corp Backend CI/CD / Refresh and release internal main (push) Has been skipped
State Corp Backend CI/CD / Release customer main (push) Has been skipped

This commit is contained in:
Aleksandr Meshchryakov
2026-09-24 13:59:55 +02:00
parent 3d8efb69b6
commit 15f5523f9b
14 changed files with 589 additions and 1 deletions

View File

@@ -122,6 +122,15 @@ class SsoIdentity(models.Model):
)
issuer = models.CharField(_("issuer"), max_length=64)
subject = models.CharField(_("external user id"), max_length=255)
external_groups = models.JSONField(_("external groups"), default=list)
okpo = models.CharField(_("OKPO"), max_length=32, blank=True)
user_type_code = models.CharField(_("user type code"), max_length=64, blank=True)
default_organisation = models.JSONField(
_("default organisation"), null=True, blank=True
)
is_integrated_structure = models.BooleanField(default=False)
ex_loop = models.BooleanField(default=False)
role_managed_by_sso = models.BooleanField(default=False)
last_authenticated_at = models.DateTimeField(_("last authenticated at"))
created_at = models.DateTimeField(_("created at"), auto_now_add=True)
updated_at = models.DateTimeField(_("updated at"), auto_now=True)