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

Sign authentication requests from Service Provider #150

Closed
mrajashree opened this issue May 14, 2018 · 7 comments · Fixed by #296
Closed

Sign authentication requests from Service Provider #150

mrajashree opened this issue May 14, 2018 · 7 comments · Fixed by #296

Comments

@mrajashree
Copy link

Is this implemented? Looking at how this line sets authnRequestsSigned to false by default, I don't think it is, but I wanted to confirm.

@peterdeka
Copy link

This should be definetly addressed

@crewjam
Copy link
Owner

crewjam commented Nov 1, 2019

Correct, we don't currently sign authentication requests. A PR would be most welcome. :)

Note: I'm in the process of catching up with this library after a period of
unfortunate neglect due to other professional obligations in the meantime.
I'm terribly sorry for the delay in addressing this issue.

@crewjam crewjam added the close_wait plan to close the issue after a respectable interval of inactivity label Nov 1, 2019
@crewjam crewjam closed this as completed Nov 22, 2019
@baloo32
Copy link

baloo32 commented Nov 22, 2019

Can we re-open this - an IdP we are now integrating with requires signing of the Authn Request...

I can get some resource to work on this, but tbh not sure where we should start...

Any initial guidance welcome, but we can create the necessary code in our fork then open a PR for this once confirmed working!

@crewjam
Copy link
Owner

crewjam commented Nov 22, 2019

I'm happy to reopen if there is still interest.

I note that in service_provider.go, in both AuthnRequest.Post and AuthnRequest.Redirect where we serialize the AuthnRequest by calling AuthnRequest.Element().

Before serializing, we need to transform the returned *etree.Element by adding a signature. This is along the lines of what we do in IdpAuthnRequest.MakeAssertionEl.

Hope that helps, PRs would be most welcome.

@crewjam crewjam reopened this Nov 22, 2019
@crewjam crewjam added help wanted enhancement and removed close_wait plan to close the issue after a respectable interval of inactivity labels Nov 22, 2019
@baloo32
Copy link

baloo32 commented Nov 23, 2019

Great - will get some dev resource on it.

I note we will also need to check the
<IDPSSODescriptor WantAuthnRequestsSigned="true"... to only sign if requested...

@trajche
Copy link

trajche commented May 24, 2020

@baloo32 Have you made any progress with this one?

@baloo32
Copy link

baloo32 commented May 26, 2020

@baloo32 Have you made any progress with this one?

Afraid the resources I had working on it were reallocated then with Covid I don't have any to continue work on it.

It's still in our backlog and I hope to get back onto it as soon as the engineers return from furlough. If you want to close, we can reopen an issue once work restarts.

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

Successfully merging a pull request may close this issue.

5 participants