Skip to content

Commit

Permalink
fix: changed fetched_entity_statement jwt to TextField, fixed typo in…
Browse files Browse the repository at this point in the history
… provider settingslocal.py.example
  • Loading branch information
rglauco committed Dec 13, 2023
1 parent 2b0c2ef commit 7ef9353
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/provider/provider/settingslocal.py.example
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ APPEND_SLASH = False
# required for onboarding checks and also for all the leafs
OIDCFED_DEFAULT_TRUST_ANCHOR = "http://127.0.0.1:8000"
OIDCFED_TRUST_ANCHORS = [OIDCFED_DEFAULT_TRUST_ANCHOR]
OIDCFED_PROVIDER_PROFILE = "spid"
OIDCFED_PROVIDER_PROFILE = "cie"
#OIDCFED_PROVIDER_MAX_REFRESH = 10 #used in SPID
OIDCFED_PROVIDER_MAX_CONSENT_TIMEFRAME = 3600 #used in CIE (seconds)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.2.3 on 2023-12-13 14:27

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
(
"spid_cie_oidc_entity",
"0031_alter_federationentityconfiguration_entity_type",
),
]

operations = [
migrations.AlterField(
model_name="fetchedentitystatement",
name="jwt",
field=models.TextField(blank=False, null=False),
),
]
2 changes: 1 addition & 1 deletion spid_cie_oidc/entity/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class FetchedEntityStatement(TimeStampedModel):
statement = models.JSONField(
blank=False, null=False, help_text=_("Entity statement"), default=dict
)
jwt = models.CharField(max_length=2048)
jwt = models.TextField(null=False, blank=False)

class Meta:
verbose_name = "Fetched Entity Statement"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.2.3 on 2023-12-13 14:27

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
(
"spid_cie_oidc_provider",
"0007_alter_issuedtoken_options_alter_oidcsession_options",
),
]

operations = [
migrations.AlterField(
model_name="oidcsession",
name="authz_request",
field=models.JSONField(max_length=65536),
),
]
2 changes: 1 addition & 1 deletion spid_cie_oidc/provider/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class OidcSession(TimeStampedModel):
help_text=_("django session key")
)
nonce = models.CharField(max_length=2048, blank=False, null=False)
authz_request = models.JSONField(max_length=2048, blank=False, null=False)
authz_request = models.JSONField(max_length=65536, blank=False, null=False)

revoked = models.BooleanField(default=False)
auth_code = models.CharField(max_length=2048, blank=False, null=False)
Expand Down

0 comments on commit 7ef9353

Please sign in to comment.