In this article, I will demonstrate how to use WSO2 API Manager REST APIs for create new client application and generate an access token and access secured API using the generated access token.
This article is to be completed If you are interested in playing with the code, Here you can find the code on GitHub.
What is OAuth:
Since there are a lot of good articles and post on this topic I’m not going to repeat the work, But will be mentioned about some topics in OAuth when it seems a jargon otherwise.In short, OAuth allows the application to access users resource without requesting user’s password; Instead application can request for specific permission only what it needs to do get the work done using the user’s resource.The word resource here can be, email address, photos etc.
How to use:
First: There is a live demo of this application, You can play with it if you want.
Before explaining how to use the app, let me go through the structure of the app and how it was build.OAuth Playground is build using DJango python framework and it uses requests and requests-oauthlib libraries to make the OAuth calls.