HTML and Javascript utility to test OAuth 2.0 integration on Liferay, built with jQuery 3.1.1 and Bootstrap 4.1.1
You can follow the official documentation to create and manage OAuth2 Applications here
- Start Liferay Portal
- Register a new OAuth2 application and set as callback:
http://DEPLOYMENT_OF_THIS_UTILITY/?url=YOUR_LIFERAY_URL&client_id=YOUR_CLIENT_ID
- Add a Scope to the new application
- Access to the utility and fill out the form for "Obtain Liferay Authorization"
- Click on "Authorize My Application"
- You will receive an authorization code, then the application can use to exchange for an access token
- Fill out the form for "Obtain OAuth2 Token"
- You should get back an access token
- You can launch API requests and also test the "Refresh Token" funcionality
Deployed at: http://martamedio.com/oauth2-tester/