Log in
Model

CustomUserContext

Magento\Integration\Model\CustomUserContext

What it does

This class represents a custom user context for API authentication and authorization in Magento 2.

Developers use it to store and retrieve user identification information (user ID and type) during API requests, particularly when standard user context needs to be overridden or customized for specific integration scenarios.

Public Methods

  • getUserId()
  • getUserType()