Comments (10)
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.
Another error experienced,
"Target path not specified" at 'vendor/korotovsky/sso-idp-bundle/src/Krtv/Bundle/SingleSignOnIdentityProviderBundle/Controller/SingleSignOnController.php line 29
from singlesignonidentityproviderbundle.
@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.
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.
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.
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&_hash=UkT2K8tB1ydtsJTRCoZUgoAVs%2B8sjx8P2ttiCSYdpo8%3D&_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&service=consumer1" / >
from singlesignonidentityproviderbundle.
@mediafigaro See this test: https://github.com/korotovsky/SingleSignOnIdentityProviderBundle/blob/0.3.x/tests/Krtv/Bundle/SingleSignOnIdentityProviderBundle/Tests/Controller/SingleSignOnControllerTest.php#L223
from singlesignonidentityproviderbundle.
@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.
@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.
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)
- No ServiceProvider managers found HOT 13
- Router class not loaded
- getOTPValidationUrl is not a method of serviceProviderInterface HOT 1
- Non-symfony application SP HOT 1
- On Logout Success, serviceManager->clear() is not sufficient for clearing '_logout/processed' session variable
- OTP Failure HOT 4
- Update README.md
- Using alongside FOSUserBundle - No route found for "GET /login_check": Method Not Allowed (Allow: POST) HOT 6
- IdP redirecting back to own home page after successful login HOT 5
- remove OTP instead of invalidate it HOT 2
- app.session.get('_security.main.target_path') value is error
- Change code coverage to 100% :)
- symfony 3.4 Too many redirections
- Why assume GET parameter in _target_path? HOT 8
- No route found for "GET /sso/login/" HOT 16
- The token storage contains no authentication token HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from singlesignonidentityproviderbundle.