-
-
Notifications
You must be signed in to change notification settings - Fork 795
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Actual Behavior
After updating HWIOAuthBundle from version 1.4 to 2.2.0, the following configurations stopped working:
The failure_handler settings are no longer functioning as expected. Instead of the intended JSON responses, an HTML page is being returned on authentication failure.
Expected Behavior
The failure_handler settings should work as they did in version 1.4, properly handling successful and failed authentication attempts and returning the configured JSON responses.
Steps to Reproduce
Update HWIOAuthBundle from version 1.4 to 2.2.0.
Configure the security firewall as follows:
api:
pattern: ^/api
stateless: true
entry_point: oauth
jwt: ~
oauth:
resource_owners:
facebook: api_facebook_login_check
google: api_google_login_check
apple: api_apple_login_check
success_handler: lexik_jwt_authentication.handler.authentication_success
failure_handler: lexik_jwt_authentication.handler.authentication_failure
login_path: index
failure_path: index
check_path: /api/login-check
use_forward: false
oauth_user_provider:
service: app.oauth_aware.user_provider.service
Attempt a failed authentication and observe the returned HTML response instead of the configured JSON response.