GuestUserContext
Magento\Webapi\Model\Authorization\GuestUserContext
What it does
This class represents an anonymous/guest user context in Magento's Web API authorization system.
Developers use this when processing API requests from unauthenticated users, as it provides a standardized way to identify guest users with userId of 0 and user type of GUEST.
It's automatically used by Magento's authorization layer when no valid authentication credentials are provided.
Public Methods
- getUserId()
- getUserType()