First lets get to know what and how this normally work. The below diagram will be able to give you a good idea .
If you want you can use existing authorization server like wso2 identity server. But I created authorization server and resource server both in a single api. There is an endpoint that you can call in order to retrieve the resources.
This is written using node.js. In order to run this on your computer you have to have node.js installed on your computer.
The sample code is uploaded to the Github and the link is mentioned below.
Run the application as follows
- Install and run nodejs application after you download the project,use terminal to go application folder
- Type npm install package.json
- Run the app using nodejs server.js or using nodemcu server.js
- Open web browser and goto http://localhost:3000
No comments:
Post a Comment