소스 검색

Allow 2FA to work with OAuth-based logins

Colin O'Dell 5 년 전
부모
커밋
56d0e11e5d
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      app/config/config.yml

+ 4 - 0
app/config/config.yml

@@ -136,6 +136,10 @@ hwi_oauth:
                 csrf: true
 
 scheb_two_factor:
+    security_tokens:
+        - Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken
+        - HWI\Bundle\OAuthBundle\Security\Core\Authentication\Token\OAuthToken
+
     backup_codes:
         enabled: true
         manager: Packagist\WebBundle\Security\TwoFactorAuthManager