Log in
Model

Consumer

Magento\Integration\Model\Oauth\Consumer

What it does

This class represents an OAuth consumer entity in Magento 2's integration system.

Developers use it to manage third-party applications that need to authenticate and access Magento's API, storing consumer credentials (key/secret), callback URLs, and validating their configuration.

It's primarily used when creating or managing integrations that use OAuth 1.0a authentication.

Public Methods

  • beforeSave()
  • validate()
  • loadByKey()
  • getKey()
  • getSecret()
  • getCallbackUrl()
  • getCreatedAt()
  • isValidForTokenExchange()