Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/sahat/satellizer

Token-based AngularJS Authentication
https://github.com/sahat/satellizer

Return 500 error when try/catch fails in ensureAuthenticated.

Add user onto req.user for easier access.

a20f0214114c8709a09d3c48a527eed581b7d8eb authored over 10 years ago by Sahat Yalkabov <[email protected]>
removed redundant "var token" line

41eacb8555d9b9f37e222b4ec1c2a1d894a54606 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Pass accessToken directly instead of a full token object

be48a518d4545a4a9971635f6aba6c2093f92039 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Fixed profile.user_id reference (profile.id is invalid)

b89655b9c90319bd11f71a61fca72e027145c25a authored over 10 years ago by Sahat Yalkabov <[email protected]>
Verify google token, if valid create a new user

ad7d4780b94926165f94662110e92bf786462dc1 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Added request library

dcdd6611eddc0e4bd0c7c33335441ec085de7fb8 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Get Google profile data and access token and then send it to the server

3bfa7aee693fd644bfda3a8ec9c8ae53b8da9f8c authored over 10 years ago by Sahat Yalkabov <[email protected]>
Refactored $get return functions

2830cfc33e40c1ef5d199ea471f1de4343be3ea6 authored over 10 years ago by Sahat Yalkabov <[email protected]>
refactored social sdk initialize functions and code that gets token from LS into separate functions

a38780812683c6a1641ba0e8a89ae08dbe10839c authored over 10 years ago by Sahat Yalkabov <[email protected]>
added oauth2 provider setter

6ef5d2b785a1ddfbbab8171de89f50ea11f8ae70 authored over 10 years ago by Sahat Yalkabov <[email protected]>
provider settter refactoring

8a6179f498d5cdb01de14436b036a196131a450e authored over 10 years ago by Sahat Yalkabov <[email protected]>
Fire event when linked autthentication was successful

4236fcaed45216f167adef1b60bae5c53eec6777 authored over 10 years ago by Sahat Yalkabov <[email protected]>
LinkedIn authentication window

bb447526490c055837d193fb6fa1d8b8c1a05fb7 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Load linkedin library asychonously

6551d873fdd8252ad77baaaacc9aa583e53fe950 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Use linkedin auth instead of twitter since it doesn't support client-side sign-in

23642ee886554f27b931c033010617bca0ccb8df authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add google+ sdk library

1adbb91db663c28a9c2c8eb49fe6e39b68aaf1f6 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Added google provider configuration

c00f1b94f3ae98aea2a12139af4e7aead7d53c2b authored over 10 years ago by Sahat Yalkabov <[email protected]>
Redirect to home page when navigation to /login or /signup if user is already logged in

a1195363e1334c61c2a777f266310284a6282bf3 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Pass facebook scope as an array of strings which are then concatenated with comma

6c66e68a7c22fd50bbe417ec89992e6c266870cd authored over 10 years ago by Sahat Yalkabov <[email protected]>
Afte signup redirect to signupRedirect which defaults to /login

7c0985bba2753319ec9d48738901c17beb0237a3 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Pass user object directly into payload, avoid database lookup during ensureAuthenticated middleware

acd7082ac528c03c46bda41e31bcc6ed81fd5756 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Display JSON user object in the <pre> block

f9e10b11726bd4cba490135fe6a079781d7239c6 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Use routeOnChangeStart event to redirect users /login when authenticated is set to true

a46ead066868b5f6432a7b79fbfc1be484253aa2 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Rename authenticate to loginOauth

7107436abd67d38299c3e12c1111bf9f92c022ae authored over 10 years ago by Sahat Yalkabov <[email protected]>
Code cleanup and refactoring

7d9eaf0e846502e978058d0b99b0bb9e8c5b7fa2 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Save token to LS when signing in with Facebook

38c8f5d2404695d26cdd2ffa885df231d2209f58 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Update user schema and new user creation in facebook auth

b092b95bfe7418d4bd732d0b597b7fbc1b7d9368 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Save current user via jwt token in facebook auth

3735a4f1656944c32476ddf87f384e28902994fb authored over 10 years ago by Sahat Yalkabov <[email protected]>
Return token if existing facebook user already exists

16a82aa26bfb0798cd0e6120c1fbb594e2ed808e authored over 10 years ago by Sahat Yalkabov <[email protected]>
Send JWT token as string instead of an object

7efbf96dce846af83a08f6d4ae1c59cc94559237 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Refactored out JWT token creation into a separate function

f61134463ebdb78a7ff3b59a345943fbbcbecb84 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Refactored facebook auth on server-side

3be1ece223f0028c306a88b657db9b5b34f904f0 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Fixed facebook encoded signature verification

edd2f59a8eecfde7f844419090fdc9449baf79c4 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add Facebook signature verification

55921a8ccd3862024192510ebe6f0bf524998e53 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Send AuthResponse from FB in addition to profile

5a270d51504b2028211ccda8e221cc150ec23697 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Configurable facebook auth url

416e85cedce810e153205436602fd0c2b40c73eb authored over 10 years ago by Sahat Yalkabov <[email protected]>
After facebook login send a POST request back to the server with the facebook user object

012ab86e79a49b75cb5658aeb9901f404899156e authored over 10 years ago by Sahat Yalkabov <[email protected]>
Fixed nested findOne of facebook.id in /auth/facebook route

582492ad413b4e454082a018c0b51db2b79c902c authored over 10 years ago by Sahat Yalkabov <[email protected]>
Update user schema and facebook auth route

4e63ee51f75203fbe297e0fa71fe8a84ff5110e1 authored over 10 years ago by Sahat Yalkabov <[email protected]>
New /auth/facebook route for creating/logging in with existing facebook user id

632d94fda4809619f35478e7578788dff3df442c authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add $rootScope.$apply to properly handle redirect after FB login

9da1e672f586593b4b4764105ece30e11e95c561 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Store accessToken from Facebook in localStorage

dd0aa778b96779cf2d3e35ef9398429fc9fd0518 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Set accessToken to localStorage and redirect to / after facebook sign-in

a370965168cb6f8bf7d0c7579c5511834b067f43 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Update facebook configuration

f5af654f1900c9881d0ace13807727bafdfd6451 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Pass scope to FB.login

eed2583074a124acab2348c9b6e3f9835abf1889 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Pass only required options explicitly to FB.init

6f1dd959d818f6487fabab77477664e18594d4bb authored over 10 years ago by Sahat Yalkabov <[email protected]>
Rename authorizationUrl to AuthorizationEndpoint for consistency

412ae5bc3d8ff144ef2f526ab7367ee0c3d12eb6 authored over 10 years ago by Sahat Yalkabov <[email protected]>
FB SDK loader refactoring

4e88df8b340c0248f552dccba76ea84902304dd5 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Facebook object that contains asyncInit and loadSDK methods for initializing FB SDK

23b1a974f3fa2fcfadf2e20a81c13c33a82c8fec authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add getParams function for retrieving oauth provider options

Add token as response type and redirectUri properties

6314d995c4a624ac560fdacbf6697886e7fc9576 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Use this.methodName instead of return an object with provider methods

5864fecf90c5ff4e75a20ba23f59f200e9391f54 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Extended any oauth2 provider options

a163553f229889754f7837dbcd97b83c9e0248cc authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add social sign-in buttons

3dba25d82bb9bc584d6c56d25be62d34c4ebb14e authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add font-awesome and bootstrap-social

20c91729f254c5ff1c9fe06fb12afabd799532d8 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add google oauth 2 provider

0ca9ab7151732648a84d0a9a4fd98608ca57743a authored over 10 years ago by Sahat Yalkabov <[email protected]>
Able to extend facebook options

1d6697e8321d3be63422340b9e4639242205470e authored over 10 years ago by Sahat Yalkabov <[email protected]>
API refactoing

fb06b66b751367352eece627dff0615815c918e1 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Code refactoring

404df7dd650af0b6c3409cc6f7a5eafa2549e03e authored over 10 years ago by Sahat Yalkabov <[email protected]>
Update bower.json files

86316f42676137313a8a8124f944787bdae19550 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add provider method for adding a new social login provider

6d5ce25d65c5fc0a7689abe5de7e8d9d1828cb69 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Use authenticate method instead of assigning to rootScope

Add authorizationEndpoint and veritificationEndpoint to provides object

1ae7ee134d2d4cd3543a23ab501095d5d74a5977 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Removed passport dependency

d02e9109d6be41e5b232638e25685d8c9ff8b9a8 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add facebook and google sign-in buttons

9d8e06048ef2e37ac21eabc5a30f546a6c09c5ef authored over 10 years ago by Sahat Yalkabov <[email protected]>
Use /auth prefix in front of login and signup routes

5d65f7c7a5cd1c382de19a8fedf3480bb71d4084 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add gulp ng-min and rename for generating minified version of the module

e230790a92ed65195d8951bf7739e84fc6329c85 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add api example usage inside configure method

5eaa3b5c48b521e1aae1cd6568850d9cc36f4f33 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Remove array dependencies (unnecessary with ng-min)

49d1fde41f4fc99bd2141615907cc072a14126d8 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Move AuthProvider into first config block

7888270cc70a99be1c0fc20945a9684d66a69134 authored over 10 years ago by Sahat Yalkabov <[email protected]>
1.Default properties are wrapped inside options object

2. AuthProvider now returns $get and configure instead of sets via this.$get and this.configure

04c0ae27704383c7654ffef5471e54f3604a0278 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Update provider name

f19f5a500fae07e7517312ffc1ccabec5e03f673 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add setters to update config variables

9777ba76baa4f73b76d059feebcfad4ffd1ff23b authored over 10 years ago by Sahat Yalkabov <[email protected]>
Remove unnecessary logout url

0820b90aa068c35de241bece85a3886f7f81541b authored over 10 years ago by Sahat Yalkabov <[email protected]>
Configurable Auth provider

4b27d4f60f35a4bac102a26d9b618e1c87721f7d authored over 10 years ago by Sahat Yalkabov <[email protected]>
Ignore bower_components

6f6f0f4ce657cc407514e52a0cc2613580533e71 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add bower.json

5da3c2a74b80baa63f9e3fdbd7fbe2b67721bb81 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Update badge to SVG

aa07351e2cbba78c12e0dc13e322ad9aff73b7fb authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add README and Code Climate badge

53a8629808e316df525f5245a0468b51a5841947 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Refactored login, signup, logout into separate functions inside auth provider

2d4b476ba686ddbf3d0f2556b68a81502b1387b4 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Use ng-bind instead of {{ }} to prevent flash

4a9287e42866232f4611f968f86a14d6d0865ffb authored over 10 years ago by Sahat Yalkabov <[email protected]>
Redirect to /login on 403 response status

1ff59e8c85e7393b3e915b38fdbc124049160d09 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Merged Auth factory into ngAuth module

5f9f7326060a65b142da4b44ef86af472f1bb6f5 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Rename Auth provider to Local

8749b0ff0514026272fd58398aa65cf4edf3bdd3 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add a few quick test TODOs

e45977650f0bd9f2608b5f00b6cc9803285e1a86 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Updated static files path to the new locstion of angular-auth.js

2451a07c4bcb838484518eeb143a80ea749a7da8 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Move angular-auth from src to root folder

Refactor authInterceptor into a separate factory for easier testing

96c493c2e825f5246c3c97495cbc6aaa13291280 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Karma tests setup

066820ac9df96fc82b9c40b7cf2933955e2730ee authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add angular-mocks for testing

7a95651e70eaa3daa80a847b71a11345adfd87a5 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Moved angular-auth.js into src folder

d59b46ac90ce8140b3c3b2f76db5a6e2b3ff1cfd authored over 10 years ago by Sahat Yalkabov <[email protected]>
Moved auth interceptor into ngAuth provider

01a7b7805b6eba6a8888fb4be15e050a3a02160b authored over 10 years ago by Sahat Yalkabov <[email protected]>
Load angular-auth on startup

d620ec99e344ffd4cec9e3e90f3b478b5be6e3d4 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Successfully redirect to /login after 401 response

81d0876876f108288094bcf6e51215e54f1ebb7f authored over 10 years ago by Sahat Yalkabov <[email protected]>
Remove token querystring from API call

274137fa8f11c6b53071c625ace15cffad526e9c authored over 10 years ago by Sahat Yalkabov <[email protected]>
Use authorization headers by default for ensureAuthenticated middleware

6338e83d8720a7c472541b3208b0cd858b59f62a authored over 10 years ago by Sahat Yalkabov <[email protected]>
Remove console.log statements

c3467bf51f14e5c21db4e90000b744fe3400367f authored over 10 years ago by Sahat Yalkabov <[email protected]>
Initial ng-auth module prototype

91d45f5d0443e88b749de12eab7864327eb6ab4c authored over 10 years ago by Sahat Yalkabov <[email protected]>
Removed password field from query in ensureAuthenticated middleware

0f12f0f08355f081f2dcd6ffc44f13c45644f893 authored over 10 years ago by Sahat Yalkabov <[email protected]>
General code cleanup

5af7b388f99bdcf97c542879a0ab8274c88aa595 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add google fonts

dcea3f939b39df411592daf412f23139d6c5c3a2 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Add protected AngularJS route

fccc1c5b4bc4f924ae0b173304927d6c95c86220 authored over 10 years ago by Sahat Yalkabov <[email protected]>
Style improvements and minor cleanup

e0bdec21ee4295cb6247c2ac313a03e8ec6c93c1 authored over 10 years ago by Sahat Yalkabov <[email protected]>