{"id":15295242,"url":"https://github.com/heresy/angularjs-social-login","last_synced_at":"2025-04-13T16:01:39.444Z","repository":{"id":57179966,"uuid":"47704285","full_name":"heresy/angularjs-social-login","owner":"heresy","description":"Simple social authentication module for AngularJS applications.","archived":false,"fork":false,"pushed_at":"2020-03-13T02:40:36.000Z","size":25,"stargazers_count":56,"open_issues_count":19,"forks_count":59,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-07T03:09:47.304Z","etag":null,"topics":["angularjs","angularjs-social-login"],"latest_commit_sha":null,"homepage":"https://github.com/heresy/angularjs-social-login","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heresy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-09T16:35:35.000Z","updated_at":"2022-10-16T03:25:39.000Z","dependencies_parsed_at":"2022-09-09T06:01:59.857Z","dependency_job_id":null,"html_url":"https://github.com/heresy/angularjs-social-login","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heresy%2Fangularjs-social-login","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heresy%2Fangularjs-social-login/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heresy%2Fangularjs-social-login/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heresy%2Fangularjs-social-login/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heresy","download_url":"https://codeload.github.com/heresy/angularjs-social-login/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741200,"owners_count":21154252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["angularjs","angularjs-social-login"],"created_at":"2024-09-30T17:09:13.143Z","updated_at":"2025-04-13T16:01:39.409Z","avatar_url":"https://github.com/heresy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AngularJS Social Login (socialLogin)\nAngularJS Social Login Module is a simple client side authentication module which helps to authenticate your application using Google/Facebook/LinkedIN. It doesn't maintain any session, session between client application and server should be maintained by yourself after receiving user details from the provider.\n\nSupported sites:\n- Google\n- Facebook\n- LinkedIN\n\n## Installation\n\n### via npm\n\n```shell\nnpm install angularjs-social-login --save\n```\n\n### via bower\n\n```shell\nbower install angularjs-social-login --save\n```\n\n### configure installation\n\nInclude JS files:\n\n```html\n\u003cscript src=\"bower_components/angularjs-social-login/angularjs-social-login.js\"\u003e\u003c/script\u003e\n```\n\nThen include `socialLogin` as a dependency for your app:\n\n```javascript\nangular.module('myApp', ['socialLogin']);\n```\n\n## Configuration\n\n### Example\n\n```javascript\napp.config(function(socialProvider){\n\tsocialProvider.setGoogleKey(\"YOUR GOOGLE CLIENT ID\");\n  socialProvider.setLinkedInKey(\"YOUR LINKEDIN CLIENT ID\");\n  socialProvider.setFbKey({appId: \"YOUR FACEBOOK APP ID\", apiVersion: \"API VERSION\"});\n});\n```\n\n## Usage\nThere are total three directives for handling Google, Facebook, LinkedIn authentication.\n- fbLogin (For Facebook)\n- gLogin (For Google)\n- linkedIn (For LinkedIn)\n\n### Methods\n\n- `socialProvider.setGoogleKey(\"YOUR GOOGLE CLIENT ID\")`\n- `socialProvider.setLinkedInKey(\"YOUR LINKEDIN CLIENT ID\")`\n- `socialProvider.setFbKey(\"YOUR FACEBOOK APP ID\")`\n- `$rootScope.$on('event:social-sign-in-success', function(event, userDetails){})` \n   Braodcast event which will be triggered after successful authentication. `userDetails` is an `Object` consists of `{name: \u003cuser_name\u003e, email: \u003cuser_email\u003e, imageUrl: \u003cimage_url\u003e, uid: \u003cUID by social vendor\u003e, provider: \u003cGoogle/Facebook/LinkedIN\u003e, token: \u003c accessToken for Facebook \u0026 google, no token for linkedIN\u003e}, idToken: \u003c google idToken \u003e` \n- `socialLoginService.logout()`\n   For logout\n- `$rootScope.$on('event:social-sign-out-success', function(event, logoutStatus){})`\n   Braodcast event which will be triggered after successful logout.\n\n### Example\n```html\n\u003cbutton g-login type=\"button\"\u003eGoogle Login\u003c/button\u003e\n\u003cbutton linked-in type=\"button\"\u003eLinkedIn Login\u003c/button\u003e\n\u003cbutton fb-login type=\"button\"\u003efacebook Login\u003c/button\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheresy%2Fangularjs-social-login","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheresy%2Fangularjs-social-login","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheresy%2Fangularjs-social-login/lists"}