Giter VIP home page Giter VIP logo

Comments (7)

nxadm avatar nxadm commented on June 1, 2024

The test uses the Unsollicited login functionality of Shib Idp3, i.e. login in on the Idp for a configured SP without going first to the SP in question. It does not matter what SP you use, as long as it's properly configured on de IdP. You don't need an special SP, we use one of our production websites.

The important part is that the login works. Then we check that the IdP sends a SAMLResponse:

matched, _ := regexp.MatchString("\\bname=\"SAMLResponse\"", browser.Body())

Can you check in the IdP verbose logs (eg process) if you see name="SAMLResponse"?

from check-shib3idp-login.

cultcom avatar cultcom commented on June 1, 2024

Is it possible that the response is sent directly to the SP instead of being send back to the requester?

from check-shib3idp-login.

nxadm avatar nxadm commented on June 1, 2024

According to the documentation it looks like you're using SAML1 instead of SAML2. Could this be it?

"[SAML1] Formally speaking, this is not IdP-initiated SSO; it's a proprietary request to the IdP that results in a response to the SP. If you refer back to the initial discussion above, you can see that that's actually the definition of IdP-initiated SSO."

https://wiki.shibboleth.net/confluence/display/IDP30/UnsolicitedSSOConfiguration

from check-shib3idp-login.

cultcom avatar cultcom commented on June 1, 2024

I am using the SAML2 URL "/idp/profile/SAML2/Unsolicited/SSO" as it was given in the example. And I am currently testing it against the public SP from DFN (testsp3.aai.dfn.de).
Currently I'm running shibboleth 3.3.2.

from check-shib3idp-login.

cultcom avatar cultcom commented on June 1, 2024

Argh, ok, I found it. The test-user had to confirm the transmitted attributes first. After manually logging in and confirming the transmitted data permanently it works with the check as expected.

from check-shib3idp-login.

nxadm avatar nxadm commented on June 1, 2024

Ah, good catch!

This means we need a better error messaging for this case, that will be more common with the EU data privacy laws.

An option would be to attach the response in the error message here:
https://github.com/KULeuven-CCIS/check-shib3idp-login/blob/master/connection.go#L75

I'll add it to the TODO.

Thx,

C.

from check-shib3idp-login.

nxadm avatar nxadm commented on June 1, 2024

Added the response body in the message for a failed login. This will help identifying the problem you had a lot faster.

https://github.com/KULeuven-CCIS/check-shib3idp-login/releases/tag/v0.2.1

from check-shib3idp-login.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.