Closed timothyjeffcoat closed 8 years ago
Did you include this routing into your routing.yml
?
# app/config/routing.yml:
sso:
resource: .
type: sso
Could you also paste your app/cache/dev/appDevUrlMatcher.php
file to gist?
I did add that to the routing.
I have created a gist. My first time. So, let see if this works
Could you paste a link to this gist? Also, I think you could remove symfony cache and try again.
i have cleared cache. and retried accessing and still get same error message.
OK. What hostname do you use on your IdP application? As I see it should be idp.example.com
on 8000
port. https://gist.github.com/timothyjeffcoat/b979b6cca1669315ec27640cc3bb247d#file-appdevurlmatcher-php-L277. If not, you have to configure it properly. All possible options you can find here: https://github.com/korotovsky/SingleSignOnIdentityProviderBundle/blob/0.3.x/src/Krtv/Bundle/SingleSignOnIdentityProviderBundle/DependencyInjection/Configuration.php#L23
I renamed the idp.example.com to idp.example.com:8000 and the sp to consumer1.com:7777
Ah. You can't specify the port in this way. The host
should contain only hostname without a port.
how do i specify port?
There is no way to specify port. https://github.com/symfony/symfony/issues/7592
Thank you for your help!! Really appreciate the prompt responses. When I get done creating these demo projects I will post as examples for your bundles.
Thanks!
Have you tried the URL without the last forward slash (like /sso/login
)?
I had the same problem and when I removed the last forward slash the route was recognized.
I did. Thanks for the comment. At this moment I am having to put this on the back burner and come back to it later.
@timothyjeffcoat can you provide an examples?
Sorry, I don't have any examples. Turned out for my business case I had to use a different method of providing a SSO hybrid solution between my web apps.
I wonder if you could tell me why I would get this error?
No route found for "GET /sso/login/"
As far as I can tell I have configured the identity provider as instructed.
Any help is much appreciated.
Thanks