-
Notifications
You must be signed in to change notification settings - Fork 10
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
base: main
Are you sure you want to change the base?
Conversation
@@ -51,6 +51,7 @@ class IdPAdmin(admin.ModelAdmin): | |||
"fields": ( | |||
"contact_name", | |||
"contact_email", | |||
"authn_requests_signed", |
There was a problem hiding this comment.
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( |
There was a problem hiding this comment.
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., |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this
By default the auth request signing field is set to False. Added a checkbox to allow configuring the setting.