Log in
Interface

AdminTokenServiceInterface

Magento\Integration\Api\AdminTokenServiceInterface

What it does

This interface defines token-based authentication services for Magento admin users.

Developers use this to programmatically generate OAuth access tokens for admin API authentication or revoke existing tokens when an admin's access needs to be terminated.

It's primarily used in REST API integrations where admins need to authenticate without session-based login.

Public Methods

  • createAdminAccessToken()
  • revokeAdminAccessToken()