我尝试使用hwioauth bundle通过salesforce进行身份验证,但我无法运行whi配置。 我收到以下消息:
InvalidConfigurationException: Invalid configuration for path "security.firewalls.secured_area": The check_path "/login_check" for login method "oauth" is not matched by the firewall pattern "^/demo/secured/".
我担心我没有理解文档,或者他们缺乏有关路由配置的详细信息......
/ demo / secured_area的基本配置是:
的routing.yml:
hwi_oauth_connect:
resource: "@HWIOAuthBundle/Resources/config/routing/connect.xml"
prefix: /connect
hwi_oauth_redirect:
resource: "@HWIOAuthBundle/Resources/config/routing/redirect.xml"
prefix: /connect
hwi_oauth_login:
resource: "@HWIOAuthBundle/Resources/config/routing/login.xml"
prefix: /demo/secured/login
salesforce_login:
pattern: /demo/secured/check-salesforce
config.yml:
hwi_oauth:
connect:
confirmation: true
firewall_name: secured_area
resource_owners:
salesforce:
type: salesforce
client_id: xxx
client_secret: xxx
security.yml:
firewalls:
secured_area:
pattern: ^/demo/secured/
anonymous: ~
oauth:
resource_owners:
salesforce: "/demo/secured/check-salesforce"
login_path: /login
use_forward: false
failure_path: /login
oauth_user_provider:
oauth: ~
access_control:
- { path: ^/demo/secured/login, roles: IS_AUTHENTICATED_ANONYMOUSLY }
所以我想知道应该使用哪种配置。