简体   繁体   中英

Symfony app on subdomain auto login user based on session variables from main domain

We have a Symfony application on a subdomain that we have added to our main domain (not a Symfony app) in an iframe. We are able to pull the session variables from the main domain into the subdomain and we are looking to automatically login a user based on those session variables.

We are trying to use the x-auth-token based authentication to bypass the login by overriding the default login methods.

It's expected to automatically log a user into the Symfony app.

Error Message:

The service "security.authentication.provider.guard.main" has a dependency on a non-existent service "UserBundle\\Security\\TokenAuthenticator".

@jakumi 服务在 services.yml 中定义,但仍然显示不存在。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM