hwi / HWIOAuthBundle

OAuth client integration for Symfony. Supports both OAuth1.0a and OAuth2.
MIT License
2.27k stars 797 forks source link

Connect functionality is broken when using authenticators (Symfony 6+) #1977

Closed stloyd closed 7 months ago

stloyd commented 7 months ago
Q A
Bug? yes
New Feature? no
Support question? no
Version 2.x

Actual Behavior

Due to the internal setup of AuthenticationManger in Symfony and catching all AuthenticationExceptions as failures, we're no longer able to catch that exception (in fact a child of it: AccountNotLinkedException) to properly start the previous setup of connect functionality.

Expected Behavior

Connect functionality should work(?) with authenticators.

Steps to Reproduce

hwi_oauth:
    connect:
        registration_form_handler: App\Form\RegisterFormHandler
        registration_form: App\Form\RegisterForm
        account_connector: App\Security\OAuthConnector

    # ...

Possible Solutions

N/A