From 29c8d81fe59302bb91d62b43d231685dae1f98e6 Mon Sep 17 00:00:00 2001 From: Stian Thorgersen Date: Fri, 25 Oct 2013 15:50:14 +0100 Subject: [PATCH] Updated instructions for adding social providers through admin console --- .../resources/admin/js/controllers/realm.js | 2 +- .../admin/partials/provider/facebook-help.html | 18 +++++++++++------- .../admin/partials/provider/twitter-help.html | 12 ++++++------ 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js b/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js index 2cda1e9976..1b4a4f500d 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js +++ b/admin-ui/src/main/resources/META-INF/resources/admin/js/controllers/realm.js @@ -212,7 +212,7 @@ module.controller('RealmSocialCtrl', function($scope, realm, Realm, $location, N var oldCopy = angular.copy($scope.realm); $scope.changed = false; - $scope.callbackUrl = "http://mock.url.org/don/t/know/what/to/place/here"; + $scope.callbackUrl = $location.absUrl().replace(/\/admin.*/, "/rest/social/callback"); // To get rid of the "undefined" option in the provider select list // Setting the 1st option from the list (if the list is not empty) diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/provider/facebook-help.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/provider/facebook-help.html index b77979d1a5..33a94e9b8f 100755 --- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/provider/facebook-help.html +++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/provider/facebook-help.html @@ -1,22 +1,26 @@ -

- Mock page for Facebook provider help. -

+

Open https://developers.facebook.com/apps. Click on Create New App

-

Fill in name, description and website. For Callback URL use the following value:

+

Use any app name that you'd like, click Continue

+ +

Select Disabled for Sandbox Mode

+ +

Under Select how your app integrates with Facebook select Website with Facebook login. Fill in the form with the following values:

+

Click on Save changes. Insert App ID and App Secret in the form below.

+
- +
- +
diff --git a/admin-ui/src/main/resources/META-INF/resources/admin/partials/provider/twitter-help.html b/admin-ui/src/main/resources/META-INF/resources/admin/partials/provider/twitter-help.html index 27ea7abd88..19326ab918 100644 --- a/admin-ui/src/main/resources/META-INF/resources/admin/partials/provider/twitter-help.html +++ b/admin-ui/src/main/resources/META-INF/resources/admin/partials/provider/twitter-help.html @@ -13,7 +13,12 @@

Agree to the rules, fill in the captcha and click on Create your Twitter application

-

Insert Consumer key and Consumer secret in the form below.

+

+ Now click on Settings and tick the box Allow this application to be used to Sign in with Twitter, and click on Update + this Twitter application's settings. +

+ +

Click on Details. Insert Consumer key and Consumer secret in the form below.

@@ -30,11 +35,6 @@
-

- Now click on Settings and tick the box Allow this application to be used to Sign in with Twitter, and click on Update - this Twitter application's settings. -

-

Close the help panel and click save changes.

\ No newline at end of file