GithubHelp home page GithubHelp logo

heresy / angularjs-social-login Goto Github PK

View Code? Open in Web Editor NEW
56.0 56.0 60.0 25 KB

Simple social authentication module for AngularJS applications.

Home Page: https://github.com/heresy/angularjs-social-login

JavaScript 100.00%
angularjs angularjs-social-login

angularjs-social-login's People

Contributors

heresy-infotech avatar jayaram-heresy avatar kurapatijayaram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angularjs-social-login's Issues

window.localStorage use raises QuotaExceededError

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.

event:social-sign-in-success is called multiple times

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.

How can we do it without opening a new tab to login.

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

Application throws error Lib not found

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

Arrow syntax breaks compatibility with code not in ECMA6

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?

gLogin error

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..

not working on iPhone

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

Google Auth data binding Issue to ng-model

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.

Cordova comapatible?

Thanks for this awesome plugin. I want to ask is this plugin supports Cordova? how to use with it ?

idpiframe_initialization_failed

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.

Facing issue with LinkedIn

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

google signup directive gives error on load

it giving me error in time of loading following error

https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.8z9WiJsz5YM.O/m=auth2/rt=j/sv=1/d=1/ed=1/am=AQ/rs=AGLTcCOeIPvL96qebQ5Fhurkrd9H51vLBQ/cb=gapi.loaded_0

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

FB.login popup open problem

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.

missing semicolons

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!

How to get loggedin User oauth token and oauth secret key for linkedin?

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);
			    });
			});

Option to choose google accounts.

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.

Facebook Login : Invalid version specified

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?

in which variable or element the return data is stored and how to access it

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.

Logout Directive for logout

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:)

FB is not defined

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

Linkedin oauth token is not availlable

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.