Skip to main content

Magento 2 : How to programaticallyprogrammatically create and display bearer token inon admin screen?

Bearer Token Magento 2 - how: How to programatically create and display bearer token in Adminadmin screen

Source Link

Bearer Token - how to programatically create and display in Admin screen

Is it possible to create and display a bearer token in my custom admin setting screen for my plugin?.

In short, I want to be able allow customer to install my plugin, copy a Bearer Token from the a settings page for my plugin and allow my external server to access to their Magento store view Magento's API interface given the Bearer token.

With Magento 1.x we were able to something like this, display a token from the admin page which then gave our external server access to their Magento site using the token.