FOSUserBundleを私のFOSOAuthServerBundle対応サーバの認証プロバイダに設定しようとしています。私がFOSUserBundleを実装しようとする前に、FOSOAuthServerBundleが正しく動作していて、FOSOAuthServerBundleを使わずにFOSUserBundleを動作させていましたが、一緒に動作させることはできません。FOSUserBundleを私のFOSOAuthServerBundle対応サーバの認証プロバイダに設定する方法
私の質問は、下記のsecurity.ymlのoauth_authorize:firewallの認証プロバイダに指定する必要がありますか?
# app/config/security.yml
security:
providers:
fos_userbundle:
id: fos_user.user_provider.username
encoders:
FOS\UserBundle\Model\UserInterface: sha512
firewalls:
oauth_token:
pattern: ^/oauth/v2/token
security: false
oauth_authorize:
pattern: ^/oauth/v2/auth
# WHAT GOES HERE?
api:
pattern: ^/api
fos_oauth: true
stateless: true
access_control:
- { path: ^/api, roles: [ IS_AUTHENTICATED_FULLY ] }
私はクライアントではなくユーザーを認証しようとしています。どうもありがとう。