Model
OauthUserContext
Magento\Webapi\Model\Authorization\OauthUserContext
What it does
This class determines the user context for Web API requests authenticated via OAuth tokens.
It validates OAuth access tokens from HTTP request headers and identifies the associated integration ID and user type.
Developers use this class when building or customizing API authentication flows that need to identify which integration is making an OAuth-authenticated API request.
Public Methods
- getUserId()
- getUserType()
- _resetState()