Php 卫生福利及食物局局长;FOSUserBundle积分
我遵循了以下两个文件: (适用于HWIOAuth) (将HWIOAuth与FOSUB集成) 我得到了这个错误 ServiceNotFoundException:您请求了一个不存在的服务“hwi_oauth.resource_ownermap.main” 我在stackoverflow中发现了相同的错误: 但我认为config.yml中的ressource_所有者配置良好 这是:Php 卫生福利及食物局局长;FOSUserBundle积分,php,symfony,oauth,fosuserbundle,hwioauthbundle,Php,Symfony,Oauth,Fosuserbundle,Hwioauthbundle,我遵循了以下两个文件: (适用于HWIOAuth) (将HWIOAuth与FOSUB集成) 我得到了这个错误 ServiceNotFoundException:您请求了一个不存在的服务“hwi_oauth.resource_ownermap.main” 我在stackoverflow中发现了相同的错误: 但我认为config.yml中的ressource_所有者配置良好 这是: fos_user: db_driver: orm firewall_name: main
fos_user:
db_driver: orm
firewall_name: main
user_class: MyProject\UserBundle\Entity\User
registration:
form:
type: myproject_user_registration
confirmation:
enabled: true
template: FOSUserBundle:Registration:email.txt.twig
hwi_oauth:
firewall_name: main
fosub:
username_iterations: 30
properties:
yahoo: yahoo_id
google: google_id
windows_live: windows_live_id
linkedin: linkedin_id
resource_owners:
any_name:
type: yahoo
client_id: X
client_secret: X
any_name:
type: google
client_id: X
client_secret: X
scope: X
any_name:
type: windows_live
client_id: X
client_secret: X
any_name:
type: linkedin
client_id: X
client_secret: X
scope: X
我有正确的值,而不是X(没有任何“”,我不知道是否应该添加此值)。security.yml中防火墙的
资源\u所有者
部分也必须配置以避免该错误
firewalls:
main:
oauth:
resource_owners:
facebook: "/login/check-facebook"
twitter: "/login/check-google"
还必须配置security.yml中防火墙的
resources\u owner
部分以避免该错误
firewalls:
main:
oauth:
resource_owners:
facebook: "/login/check-facebook"
twitter: "/login/check-google"
您是否在主配置文件中包含了bundle
services.yml
#/app/config/config.yml
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: "@UserBundle/Resources/config/services.yml" }
您是否在主配置文件中包含了bundle
services.yml
#/app/config/config.yml
imports:
- { resource: parameters.yml }
- { resource: security.yml }
- { resource: "@UserBundle/Resources/config/services.yml" }
我的错误是我
secured_area:
oauth:
resource_owners:
facebook: "/login/check-facebook"
twitter: "/login/check-google"
而不是
main:
oauth:
resource_owners:
facebook: "/login/check-facebook"
twitter: "/login/check-google"
在security.yml文件中
谢谢。我的错误是
secured_area:
oauth:
resource_owners:
facebook: "/login/check-facebook"
twitter: "/login/check-google"
而不是
main:
oauth:
resource_owners:
facebook: "/login/check-facebook"
twitter: "/login/check-google"
在security.yml文件中
谢谢。谢谢问题是我保护了\u区域而不是主要区域。谢谢问题是我保护了\u区域而不是主要区域。