Log in
Model

SoapUserContext

Magento\Webapi\Model\Authorization\SoapUserContext

What it does

This class identifies and authenticates SOAP API users by extracting and validating bearer tokens from request headers.

It determines the user ID and user type (specifically for integration users) by looking up the token in the database and verifying the integration's permissions.

Developers use this class when building or customizing SOAP web services that require user authentication and authorization.

Public Methods

  • getUserId()
  • getUserType()
  • _resetState()