Coder Social home page Coder Social logo

Comments (10)

korotovsky avatar korotovsky commented on July 17, 2024

Looks like Symfony has removed uri_signer.class parameter in release that you use. I'll try to provide a quick fix soon.

This issue was fixed in the korotovsky/sso-idp-bundle@~3.0. Please use this version constraint

from singlesignonidentityproviderbundle.

marvoh avatar marvoh commented on July 17, 2024

Another error experienced,

"Target path not specified" at 'vendor/korotovsky/sso-idp-bundle/src/Krtv/Bundle/SingleSignOnIdentityProviderBundle/Controller/SingleSignOnController.php line 29

from singlesignonidentityproviderbundle.

korotovsky avatar korotovsky commented on July 17, 2024

@marvoh When SP redirects (or IdP security handler) user to IdP it should also append _target_path parameter with correct value. Please check an example here: https://github.com/korotovsky/SingleSignOnIdentityProviderBundle/blob/0.3.x/tests/Krtv/Bundle/SingleSignOnIdentityProviderBundle/Tests/Controller/SingleSignOnControllerTest.php#L223

from singlesignonidentityproviderbundle.

mediafigaro avatar mediafigaro commented on July 17, 2024

Hello @korotovsky I have the same problem, where should I append _target_path parameter into the SP ? There is no controller, it's into the ServiceProvider ? eg. the link ^

when I go on my SP : http://service.sf I'm redirected to IDP : http://idp.sf/login?_otp_failure=1&_otp_failure_time=1500471910.3835&_hash=03efZYChjtbZCorjTrDfCNVX0EpoExKeYIE1z1UGGK8%3D

And /otp/validate/ == > /internal/v1/sso/ same route ?

thanks

from singlesignonidentityproviderbundle.

korotovsky avatar korotovsky commented on July 17, 2024

Hi,

/otp/validate/ is a route on SP to make server-side, trusted request to your IdP.

/internal/v1/sso/ is a route that accepts a code that SP provided for verification and should respond with a model or throw bad request.

from singlesignonidentityproviderbundle.

mediafigaro avatar mediafigaro commented on July 17, 2024

ok, fine. In the login form, the target path is : ?

< input type="hidden" name="_target_path" id="_target_path" value="http://idp.sf/sso/login/?_failure_path=http%3A%2F%2Fidp.sf%2Fsso%2Flogin%3F_target_path%3Dhttp%253A%252F%252Fservice.sf%252Fapp_dev.php%252F%253F_hash%253DMD3NplbZW%25252BylHUDxQcvLG%25252FXMn71mnSts6tx9MQmbg1k%25253D&amp;_hash=UkT2K8tB1ydtsJTRCoZUgoAVs%2B8sjx8P2ttiCSYdpo8%3D&amp;_target_path=http%3A%2F%2Fservice.sf%2Fotp%2Fvalidate%2F%3F_target_path%3Dhttp%253A%252F%252Fservice.sf%252Fapp_dev.php%252F%253F_hash%253DMD3NplbZW%25252BylHUDxQcvLG%25252FXMn71mnSts6tx9MQmbg1k%25253D&amp;service=consumer1" / >

from singlesignonidentityproviderbundle.

korotovsky avatar korotovsky commented on July 17, 2024

@mediafigaro See this test: https://github.com/korotovsky/SingleSignOnIdentityProviderBundle/blob/0.3.x/tests/Krtv/Bundle/SingleSignOnIdentityProviderBundle/Tests/Controller/SingleSignOnControllerTest.php#L223

from singlesignonidentityproviderbundle.

mediafigaro avatar mediafigaro commented on July 17, 2024

@korotovsky I try but it must be malformed : http://idp.sf/sso/login/?_target_path=http%3A%2F%2Fservice.sf%2Fotp%2Fvalidate%2F%3F_target_path%3Dhttp%3A%2F%2Fservice.sf%2F&_hash=aA6jVJkP12UYgWq2xYLK12BLkuD4kEy%2FDRscQgKMULg%3D => http://idp.sf/sso/login/?_hash=VwiArTpUP1weqGrSIEN%2FCteuG9qO1kUfeNGh9xTHOss%3D&_otp_failure=1&_otp_failure_time=1500543713.9806 (url malformed, _target_path missing)

from singlesignonidentityproviderbundle.

mediafigaro avatar mediafigaro commented on July 17, 2024

@korotovsky my url couldn't be validated because of the tld : locally I use .sf with docker. Switched to .com, finner. I just don't see where to append / add the _target_path ?

in the login form (Step 9: Add redirect path to login form) = this value is posted.

When I access my SP I'm redirected to : IDP/login?_otp_failure=1&_otp_failure_time=1501253793.2919&_hash=1XDY.... without _target_path

Where should it be inserted please ?

from singlesignonidentityproviderbundle.

mediafigaro avatar mediafigaro commented on July 17, 2024

that's handled by the LoginSuccessHandler, this is well configured ?

    main:
        pattern:    ^/
        security:   true
        anonymous:  true
        http_basic:
            realm: "Secured Demo Area"
        form_login:
            login_path: login
            check_path: login
            success_handler: app_bundle.security.login_success_handler
        logout:
            path: /logout
            success_handler: app_bundle.security.logout_success_handler

from singlesignonidentityproviderbundle.

Related Issues (17)

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.