martamedio / liferay-oauth2-tester

Liferay OAuth2 Application Tester

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Liferay OAuth2 Tester

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

How to use the Liferay OAuth 2.0 Tester application

  1. Start Liferay Portal
  2. Register a new OAuth2 application and set as callback: http://DEPLOYMENT_OF_THIS_UTILITY/?url=YOUR_LIFERAY_URL&client_id=YOUR_CLIENT_ID
  3. Add a Scope to the new application
  4. Access to the utility and fill out the form for "Obtain Liferay Authorization"
  5. Click on "Authorize My Application"
  6. You will receive an authorization code, then the application can use to exchange for an access token
  7. Fill out the form for "Obtain OAuth2 Token"
  8. You should get back an access token
  9. You can launch API requests and also test the "Refresh Token" funcionality

Deployed at: http://martamedio.com/oauth2-tester/

About

Liferay OAuth2 Application Tester


Languages

Language:JavaScript 53.2%Language:HTML 46.1%Language:CSS 0.7%