korotovsky / SingleSignOnIdentityProviderBundle

Single Sign On bundle for Symfony2 projects. IdP part.
MIT License
47 stars 25 forks source link

No route found for "GET /sso/login/" #7

Closed timothyjeffcoat closed 8 years ago

timothyjeffcoat commented 8 years ago

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

korotovsky commented 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?

timothyjeffcoat commented 8 years ago

I did add that to the routing.

I have created a gist. My first time. So, let see if this works

korotovsky commented 8 years ago

Could you paste a link to this gist? Also, I think you could remove symfony cache and try again.

timothyjeffcoat commented 8 years ago

https://gist.github.com/timothyjeffcoat/b979b6cca1669315ec27640cc3bb247d

timothyjeffcoat commented 8 years ago

i have cleared cache. and retried accessing and still get same error message.

korotovsky commented 8 years ago

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

timothyjeffcoat commented 8 years ago

I renamed the idp.example.com to idp.example.com:8000 and the sp to consumer1.com:7777

korotovsky commented 8 years ago

Ah. You can't specify the port in this way. The host should contain only hostname without a port.

timothyjeffcoat commented 8 years ago

how do i specify port?

korotovsky commented 8 years ago

There is no way to specify port. https://github.com/symfony/symfony/issues/7592

timothyjeffcoat commented 8 years ago

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.

korotovsky commented 8 years ago

Thanks!

adnedelcu commented 8 years ago

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.

timothyjeffcoat commented 8 years ago

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.

korotovsky commented 8 years ago

@timothyjeffcoat can you provide an examples?

timothyjeffcoat commented 8 years ago

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.