Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #72 Make sure token is always authenticated (yoshz)
This PR was squashed before being merged into the 0.1-dev branch. Discussion ---------- Make sure token is always authenticated After upgrading to symfony 5.4, authorization is broken because the OAuth2Token doesn't is "authenticated" anymore (see #68). From symfony 5.4 on the `authenticated` property is not used anymore but triggers an error in the AuthorizationChecker when it is false (this seems buggy as well). This fix ensures the authenticated property is always true when an user is set on the token. ~~This is the same behavior as the UsernamePasswordToken and RememberMeToken.~~ Seems this fix is only necessary for symfony 5.4. Symfony 6.0 works fine. I have updated the pipeline config to tests on the right versions and update composer to v2 as it is required for symfony 6.0. Commits ------- 9468f33 Make sure token is always authenticated
- Loading branch information