Configure OAuth Authentication

  1. Login as escenic on your assembly-host (see the Escenic Content Engine Installation Guide for an explanation of this term).

  2. Go to /etc/escenic/engine/common/com/escenic/auth/oauth2 and open OAuth2Configuration.properties in an editor.

  3. 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
  4. Go to the Facebook Developers web site and select the first app you created.

  5. Copy the value displayed in the App ID field to the clientId.application property in OAuth2Configuration.properties.

  6. Copy the value displayed in the App secret field to the clientSecret.application property in OAuth2Configuration.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.

  7. On the Facebook Developers web site, select the second app you created.

  8. Copy the value displayed in the App ID field to the clientId.web (for Web Studio) and clientId.mobile (for Mobile Studio) properties in OAuth2Configuration.properties.

  9. Copy the value displayed in the App secret field to the clientSecret.web (for Web Studio) and clientSecret.mobile (for Mobile Studio) properties in OAuth2Configuration.properties.

  10. Save and close OAuth2Configuration.properties.