We have Magento 2.1 store and we need to make this authorization script working.
You need to use your Magento Store either on localhost or remotely and use your own credentials.
Make this script working-[login to view URL]
For this you need to see-[login to view URL] In this file you need to modify request endpoints. These can be either-
'/oauth/initiate' or '/oauth/token/request' for getting temporary token and '/oauth/token' or '/oauth/token/access'.