What is OAuth? It is a utility that authorizes third party applications to interact with the Liferay platform. The example from our official documentation is worth repeating here; users can make Twitter or Facebook available on Liferay Portal or DXP. To gain access to Facebook or Twitter, instead of users entering their credentials again in Liferay, OAuth creates a handshake and Liferay will redirect users to the service provider. The service provider will grant limited access to the Liferay platform.
Liferay is integrated with the OAuth 1.0 Protocol. Developers wishing to deploy OAuth on their environments can download the Liferay Connector to OAuth EE Plugin from Liferay Marketplace.
Resolution
Useful Terminology
Resource Owner
- An entity capable of accessing and controlling protected resources by using credentials to authenticate with the server. For example: Jane has uploaded her vacation photos on a web-based site like Flickr; she is the "resource owner."
Credentials
- Credentials are two things: (1) a unique identifier and (2) a matching shared secret.
- OAuth defines three classes of credentials: client, temporary and token. These are used to identify and authenticate the following:
- The client making the request
- The authorization request
- The access grant
Token
- A unique identifier issued by the server and used by the client to associate authenticated requests with the Resource Owner, whose authorization is requested or has been obtained by the client. Tokens have a matching shared-secret that is used by the client to establish its ownership of the token and its authority to represent the Resource Owner.
Frequently Asked Questions
How can I implement OAuth in my Liferay platform?
- For more information on how to develop a custom interface to manage communications between the different web services, refer to the two OAuth articles below. The following is a quick start.
- After the OAuth app has been registered, click Actions > View.
- Notice that the Liferay platform generated two Application Credentials: the Consumer Key and Consumer Secret.
- The consumer key is a value used by the application to identify itself to the service provider. Likewise, the consumer secret is a value the application uses to establish ownership of the consumer key.

- In the case of plugins, Liferay platform plugins using OAuth must refer to the OAuth standards found in a client library. The client library is found in a specific jar called Scribe which is located inside the portal
.warWEB-INF\libfolder directory. If there is a specific plugin which needs to authenticate using OAuth, open the plugin'sliferay-plugin-package.propertiesfile and addscribe.jaras a portal dependency.portal-dependency-jars=\ scribe.jar - Deploy the OAuth app from Liferay Marketplace onto the portal.
- Navigate to OAuth Admin tab now available after the app has been installed.
- Click Add. The Add view looks like this:

What information can I use as grant types?
Under the Liferay Connector to OAuth 1.0 Protocol, only the client credentials (or temporary credentials as tokens) are used. See Section 2.2 Resource Owner Authorization and Section 2.3 Token Credentials.
At this point, there are no plans to implement Liferay Connector to OAuth 2.0 Protocols on the Liferay road map. Different types of authorization grants under the Liferay Connector to OAuth 2.0 Protocols are not available in legacy Liferay Portal versions or in DXP.
Additional Information
Please reference the following articles:
See the following feature request tickets on implementing OAuth 2.0 in the future: