korotovsky / SingleSignOnServiceProviderBundle

Single Sign On bundle for Symfony2 projects. SP part.
MIT License
33 stars 18 forks source link

SSO 0.1 _target_path redirect failed #19

Open cyerogy opened 4 years ago

cyerogy commented 4 years ago

Hi, This is the PHP and Symfony version information

  1. php version 5.5.9
  2. symfony 2.6 composer.json

    "korotovsky/sso-sp-bundle": "0.1.0",
    "korotovsky/sso-idp-bundle": "0.1.0"

    /app/config/config.yml

    
    krtv_single_sign_on_identity_provider:
    host:             127.0.0.1:8000
    host_scheme:      http
    
    login_path:       /sso/login/

krtv_single_sign_on_service_provider: host: 127.0.0.1:8000 host_scheme: http

login_path:           /sso/login/
/app/config/routing.yml

sso: resource: . type: sso otp: path: /otp/validate/ defaults: { _controller: pyxisxBundle:Opt:validate }

/app/config/security.yml

providers: administrators: entity: { class: pyxis\xBundle\Entity\Security\User, property: username } firewalls: main: pattern: ^/ sso: require_previous_session: false provider: administrators check_path: /otp/validate/ # Same as in app/config/routing.yml

            sso_scheme:       http              # Required
            sso_host:         127.0.0.1:8000   # Required
            sso_failure_path: /login
            sso_path:         /sso/login/       # SSO endpoint on IdP.

access_control:

korotovsky commented 3 years ago

Hi,

Most likely it's an issue of the OTP validation between SP and IdP on the server level, I'd check it.