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. -
Make sure the following properties are set exactly as shown:
serviceEnabled=true name=Facebook profileUri=https://graph.facebook.com/me?fields=email tokenUrl=https://graph.facebook.com/oauth/access_token authorizationUrl=https://graph.facebook.com/oauth/authorize scope=email userNameProperty=email expiresProperty=expires
-
Go to the Facebook Developers web site and select the first app you created.
-
Copy the value displayed in the App ID field to the
clientId.application
property inOAuth2Configuration.properties
. -
Copy the value displayed in the App 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 6. Otherwise you can jump straight to step 10. -
On the Facebook Developers web site, select the second app you created.
-
Copy the value displayed in the App ID field to the
clientId.web
(for Web Studio) andclientId.mobile
(for Mobile Studio) properties inOAuth2Configuration.properties
. -
Copy the value displayed in the App secret field to the
clientSecret.web
(for Web Studio) andclientSecret.mobile
(for Mobile Studio) properties inOAuth2Configuration.properties
. -
Save and close
OAuth2Configuration.properties
.