Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Field to toggle auth request signing #28

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

kadaji
Copy link

@kadaji kadaji commented May 24, 2024

By default the auth request signing field is set to False. Added a checkbox to allow configuring the setting.

@@ -51,6 +51,7 @@ class IdPAdmin(admin.ModelAdmin):
"fields": (
"contact_name",
"contact_email",
"authn_requests_signed",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be down in the "Advanced" group below.

@@ -44,6 +44,11 @@ class IdP(models.Model):
)
contact_name = models.CharField(max_length=100)
contact_email = models.EmailField(max_length=100)

authn_requests_signed = models.BooleanField(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor quibble, but can you put this down by the logout_request_signed and logout_response_signed fields?

sp/models.py Outdated
@@ -217,6 +222,7 @@ def sp_settings(self):
"security": {
"wantAttributeStatement": self.require_attributes,
"metadataValidUntil": self.certificate_expires,
"authnRequestsSigned": self.,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you missed something here 😄

@@ -13,6 +13,8 @@

def metadata(request, **kwargs):
idp = get_request_idp(request, **kwargs)
print(idp.sp_settings)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's remove this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants