+
Skip to content

Conversation

konradoboza
Copy link
Contributor

@konradoboza konradoboza commented Aug 2, 2024

🎫 Issue IBX-8656

Related PRs:

Description:

Another step in our "new security" journey. As an example, ibexa/oauth2-client bundle is an integration with knpuniversity/oauth2-client-bundle. Due to Symfony security layer revamp we needed to adjust accordingly, as in other cases touching authentication in general.

This case exposed one issue related to src/lib/MVC/Symfony/Security/Authentication/EventSubscriber/RepositoryUserAuthenticationSubscriber.php though - full credentials and password hash type check which is needed for a regular authorization doesn't make much sense in that scenario.

The reason for that is explicit usage of Symfony\Component\Security\Http\Authenticator\Passport\SelfValidatingPassport for users coming from outside of our system. In such cases we need to allow bypassing any additional validation since it's done by 3rd party provider (e.g. Azure, Google, Microsoft etc) already. Users coming from outside are only mapped to our content model and undergo a regular PermissionResolver flow afterwards. I made sure this case is also covered within existing test case.

On this occasion I got rid of unused InteractiveLoginEvent which has its Symfony counterpart. The latter is already in use in almost all the cases within Ibexa DXP so this is another natural step.

@Steveb-p Steveb-p requested a review from a team August 5, 2024 08:13
Copy link

sonarqubecloud bot commented Aug 5, 2024

@alongosz alongosz requested a review from a team August 5, 2024 10:16
Copy link

@tomaszszopinski tomaszszopinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA approved on Ibexa DXP 5.0 commerce.

@konradoboza konradoboza merged commit f851d43 into main Aug 14, 2024
@konradoboza konradoboza deleted the ibx-IBX-8656-reworked-oauth2-authorization branch August 14, 2024 12:48
@mnocon mnocon removed the Doc needed The changes require some documentation label Aug 19, 2024
barw4 pushed a commit that referenced this pull request Oct 17, 2024
* IBX-8656: Skipped credentials check for `SelfValidatingPassport`

* removed duplicated authentication
ezrobot pushed a commit that referenced this pull request Feb 11, 2025
Allow versions below 3.16 due to PHP 7 support requirement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载