Skip to content

Add MellonSignAuthnRequest directive for AuthnRequest signing - #159

Open
sensei-hacker wants to merge 3 commits into
latchset:mainfrom
sensei-hacker:feature/sign-authn-request
Open

sensei-hacker wants to merge 3 commits into
latchset:mainfrom
sensei-hacker:feature/sign-authn-request

Conversation

@sensei-hacker

Copy link
Copy Markdown

The metadata generated by the script says that Authn requests will be signed. But then they normally aren't.

Adds a new (optional) directive:
MellonSignAuthnRequest on|off

(default off) that sets LASSO_PROFILE_SIGNATURE_HINT_FORCE before building the AuthnRequest. This is needed for IdPs such as PingOne that require signed requests when consent:Implied is present, even though this is not mandated by the SAML spec. Does not affect the existing ECP signing path.

Adds a new 'MellonSignAuthnRequest on|off' config directive (default off)
that sets LASSO_PROFILE_SIGNATURE_HINT_FORCE before building the AuthnRequest.
This is needed for IdPs such as PingOne that require signed requests when
consent:Implied is present, even though this is not mandated by the SAML spec.
Does not affect the existing ECP signing path.

@simo5 simo5 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

looks reasonable but I think naming need changing to make it clear what it does

Comment thread auth_mellon.h
int send_expect_header;

/* Force signing of AuthnRequests (MellonSignAuthnRequest). */
int sign_authn_request;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

maybe call this force_sign_auth_request, given it triggers LASSO_PROFILE_SIGNATURE_HINT_FORCE ?

Comment thread auth_mellon_config.c
return NULL;
}


Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

gratuitous newline?

Comment thread auth_mellon_config.c
),

AP_INIT_FLAG(
"MellonSignAuthnRequest",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

call it MellonForceSignAuthnRequest ?

@thijskh thijskh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

As per simo5

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.

3 participants