Configure OAuth Authentication
-
Login as
escenic
on your assembly-host (see the Escenic Content Engine Installation Guide for an explanation of this term). -
Go to
/etc/escenic/engine/common/com/escenic/auth/oauth2
and openOAuth2Configuration.properties
in an editor. -
Go to the Google Developers Console and select the project you created.
-
In the sidebar on the left, select APIs & auth.
-
Find Google+ API in the displayed list of APIs and make sure that its Status is set to ON.
-
In the sidebar on the left, select Credentials.
-
Click CREATE NEW CLIENT ID.
-
Select Installed application.
-
Select Other.
-
Click Create client ID.
-
Copy the value displayed in the Client ID field to the
clientId.application
property inOAuth2Configuration.properties
. -
Copy the value displayed in the Client secret field to the
clientSecret.application
property inOAuth2Configuration.properties
. You have now configured OAuth-based authentication for Content Studio only. If you want to use OAuth-based authentication for web applications such as Web Studio as well, continue with step 13. Otherwise you can jump straight to step 20. -
Click CREATE NEW CLIENT ID.
-
Select Web application.
-
In the Authorized JavaScript origins field, enter
http://
your-server. -
In the Authorized redirect URI field, enter
http://
your-server/escenic/logon/oauth2.do
. -
Click Create client ID.
-
Copy the value displayed in the Client ID field to the
clientId.web
property inOAuth2Configuration.properties
. -
Copy the value displayed in the Client secret field to the
clientSecret.web
property inOAuth2Configuration.properties
. -
Save and close
OAuth2Configuration.properties
.