heresy / angularjs-social-login Goto Github PK
View Code? Open in Web Editor NEWSimple social authentication module for AngularJS applications.
Home Page: https://github.com/heresy/angularjs-social-login
Simple social authentication module for AngularJS applications.
Home Page: https://github.com/heresy/angularjs-social-login
please add a semicolon at line 127 and (at least) 218
after concatenating the libs i use, including your great plugin, the JS file isn't usable because the following lib doesn't start with a ";" and my app crashes
now i fix this kind of manually
thanks!
It is opening a new tab to redirect on google and log in. Can we make it in the same tab?
For facebook it opens a popup and browsers don't allow popups. The user has to explicitly allow the popup to open.
Thanks
Thanks for this awesome plugin. I want to ask is this plugin supports Cordova? how to use with it ?
When I am logged in with 2 google accounts at a time.... Plugin is not asking me to chose from which account I must be logged in. Instead, it's directly getting the token for the initially logged in account.
Hello Developers,
I am Rupinderjit Kaur, I am trying to use the angularjs-social-login package in my application. Login authentication is working fine but I haven't find the directive for logout. As we have method for logout:
socialLoginService.logout() For logout_
$rootScope.$on('event:social-sign-out-success', function(event, logoutStatus){})
But didn't find the directive in the documentation for logout. I am supposed to develop our own directive for logout? Please help me to figure this out.
Thanks:)
Hi,
I have added the plugin correctly and when I tried to login with facebook, I am getting a console error 'Refused to display 'https://www.facebook.com/v2.7/dialog/oauth...' in a frame because it set 'X-Frame-Options' to 'DENY'.
Please help me to solve this issue.
Hi, I have used this plugin and i am very happy with your work but when i use google + login it call two times. Why it happens i did not know but it will create two entry with same detail in database because I have used nodejs as backend which is asynchronous.
Please help. Thanks in advance.
HI ,,
How to get loggedin User oauth token and oauth secret key for linkedin? Please help me to get both values.
Existing code for linkedin
IN.User.authorize(function(token){
console.log(token);
IN.API.Raw("/people/~:(id,first-name,last-name,email-address,picture-url)").result(function(res){
socialLoginService.setProvider("linkedIn");
var userDetails = {name: res.firstName + " " + res.lastName, email: res.emailAddress, uid: res.id, provider: "linkedIN", imageUrl: res.pictureUrl};
$rootScope.$broadcast('event:social-sign-in-success', userDetails);
});
});
it giving me error in time of loading following error
i have set the client key and also all the required params
it is not going inside
gJs.onload = function () {
var params = {
client_id: value,
scope: 'email'
}
// here its coming
gapi.load('auth2', function () {
//but it is not coming here
gapi.auth2.init(params);
});
};
can you please give me the solution?
Thanks
Someone help-me, I´m nob in angularJS, how use method socialLoginService.logout()?
@heresy or @kurapatijayaram
With google login it is working fine.
I am getting error : invalid version specified when try to setup Key and version of Facebook app.
socialProvider.setFbKey("fbkey", "v2.9");
Any solution please?
On line 154:
if(!scope.gauth.isSignedIn.get()){
This causes an error if the user is already logged Google services, because the popup is never been displayed. At the facebook login case it shows a popup asking for continuing with the account already logged, but in google case you probably need to add an extra conditionals in order to check this..
I getting error in google chrome
Uncaught> Object {error: "idpiframe_initialization_failed", details: "Not a valid origin for the client."}
(anonymous) @ cb=gapi.loaded_0
I am using ionic framework for social login.
When _login_provider is stored on localStorage, it raises an error on iOS 10.3 (iPhone SE, not sure about other devices), on private safari mode. Exact error:
QuotaExceededError (DOM Exception 22): The quota has been exceeded.
Later versions (iOS 11 ) does not have this problem though.
On the latest changes, the facebook functions were altered and arrow syntax was used.
This change broke compatibility with my app, which is not on ECMAScript 6.
[16:26:44] [Uglify] Error in plugin 'gulp-uglify'
Message:
C:\Users\gabsimon\PhpstormProjects\frontend\.tmp\serve\scripts\vendor-b30e8e582d.js: Unexpected token: operator (>)
Details:
fileName: C:\Users\gabsimon\PhpstormProjects\frontend\.tmp\serve\scripts\vendor-b30e8e582d.js
lineNumber: 89843
This error refer to the line FB.getLoginStatus((response) => {
.
Is there a plan to revert this change, or add a build step in order to maintain compatilibity with ECMA5 code?
I am new to ionic and angular i want to allow user to make social login. i came across your library but my issue is that it doesn't work on iphone the click action isn't triggered
so do you have any solution
Thanks in advance
allow access window not asking for google and linkedin.
Is there a specific reason for skipping accesstoken on FB login?
HI,
When click on Login with linkedIn i am getting error.
" Uncaught TypeError: e().authorize() is undefined
authorize http://platform.linkedin.com/in.js:18
link Angular "
My code is :
socialLogin.directive("linkedIn", ['$rootScope', 'social', 'socialLoginService', '$window',
function($rootScope, social, socialLoginService, $window){
return {
restrict: 'EA',
scope: {},
link: function(scope, ele, attr){
ele.on("click", function(){
IN.User.authorize(function(){
IN.API.Raw("v2/me/~:(id,first-name,last-name,email-address,picture-url)").result(function(res){
socialLoginService.setProvider("linkedIn");
var userDetails = {name: res.firstName + " " + res.lastName, email: res.emailAddress, uid: res.id, provider: "linkedIN", imageUrl: res.pictureUrl};
$rootScope.$broadcast('event:social-sign-in-success', userDetails);
});
});
})
}
}
}])
I think The issue getting from Oauth version. Please help on this ..
Thank you
After successfully getting the userDetails from google.
The code is as below
In Controller :
$rootScope.$on('event:social-sign-in-success', function(event, userDetails){ vm.obj = vm.obj || {}; vm.obj.name = userDetails.name.split(' ')[0]; vm.obj.lname = userDetails.name.split(' ')[1]; vm.obj.email = userDetails.email; });
In html :
<input name="name" ng-model="vm.obj.name"/> <input name="lname" ng-model="vm.obj.lname"/> <input name="email" ng-model="vm.obj.email"/>
the form is not updated.
When I tab out or focus on input it's get updated.
In case of facebook it's working fine.
Hey Authors!
You guys have done very good work... i appreciate your work much.
I am new to ngJs and i want to access the return data of all login process and store them in some variable and display them in table and also store info in database as well....
can you please brief me how can i do that ..
Please help me in easy way bcz i am new ...
Very thanks for your help.
I am using your package for my Facebook login app in angular. Included your script file and added dependencies, but I'm getting ReferenceError saying that FB is not defined on line number 196 in your script. Please help me where I'm doing wrong.
Thank you in advance
Hi,
I have added the plugin correctly and when I tried to click on login with facebook then can't open a popup and also can't get any error in console. Login with google working ready and get proper user data.
Added button in my html page with the directive name
<button fb-login type="button">facebook Login</button> <button g-login type="button">Google Login</button>
Added module in my js and configured the key
var angularApp = angular.module('myApp', ['socialLogin']); angularApp.config(function(socialProvider){ socialProvider.setGoogleKey("xxxx"); socialProvider.setFbKey({appId: "xxxx", apiVersion: "v2.4"}); });
Please help,
Thanks.
Hi folks,
Facebook an Google token are available in the social-sign-in event. Nevertheless the linkedin token is not available.
In the meantime, the token is available in the linked in javascript API
IN.ENV.auth.oauth_token
Why not introducing it ? I can do a pull request for that.
Thx in advance for your awnser
file://apis.google.com/js/platform.js Failed to load resource: net::ERR_FILE_NOT_FOUND
file://connect.facebook.net/en_US/sdk.js Failed to load resource: net::ERR_FILE_NOT_FOUND
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.