I am facing difficulties implementing social authentication (using Google, Facebook) in a Worklight app with the Android and iOS environments.
I am trying to use oauth. The following are requirements:
var OAUTHURL = 'https://accounts.google.com/o/oauth2/auth?';
var VALIDURL = 'https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=';
var SCOPE = 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email';
var CLIENTID = '97612631714.apps.googleusercontent.com';
var REDIRECT = ??????
var LOGOUT = 'http://accounts.google.com/Logout';
After authentication it should be redirected to our app (is located in public domain). For that we have to add a redirect uri to Google API.
I don't know what should be put in REDIRECT
.