File "oauth.google.js"
Full Path: /srv/www/www.cadoro.it/app/lib/ng-cordova-oauth/src/oauth.google.js
File size: 813 bytes
MIME-type: text/plain
Charset: utf-8
(function() {
'use strict';
angular.module('oauth.google', ['oauth.utils'])
.factory('$ngCordovaGoogle', google);
function google($q, $http, $cordovaOauthUtility) {
return { signin: oauthGoogle };
/*
* Sign into the Google service
*
* @param string clientId
* @param array appScope
* @param object options
* @return promise
*/
function oauthGoogle(clientId, appScope, options) {
var deferred = $q.defer();
deferred.reject("Google no longer supports authentication requests from the web view. More information can be found at https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html");
return deferred.promise;
}
}
google.$inject = ['$q', '$http', '$cordovaOauthUtility'];
})();