Log in
Model

OauthService

Magento\Integration\Model\OauthService

What it does

This service class manages OAuth consumer accounts and access tokens for Magento 2 integrations.

Developers use it to programmatically create OAuth credentials, generate access tokens for API authentication, and handle the OAuth handshake process when connecting third-party applications to Magento.

It provides the core functionality for setting up and managing OAuth-based integrations.

Public Methods

  • createConsumer()
  • createAccessToken()
  • getAccessToken()
  • loadConsumer()
  • loadConsumerByKey()
  • postToConsumer()
  • deleteConsumer()
  • deleteIntegrationToken()