sahat / satellizer

Token-based AngularJS Authentication
https://satellizer-sahat.rhcloud.com
MIT License
7.85k stars 1.13k forks source link

How to use with a fully decoupled app #260

Closed amitaibu closed 9 years ago

amitaibu commented 9 years ago

I'd like to use satellizer on a fully decoupled Angular app (i.e. an app that is not served by the server, but runs on Github-pages/ Heroku).

So my problem is that the return callback URI cannot be on the API server - but on the actual app, which in turn should send the Profile info to the server.

Is there an example for such a thing? (I know it's possible to do it with OAuth.io, just looking for a non 3rd party tool to do it)

sahat commented 9 years ago

I have a built an app like that here: https://hackhands.com/building-instagram-clone-angularjs-satellizer-nodejs-mongodb/

It uses Dropbox for serving static files (Angular.JS app + Satellizer) and Heroku for serving Node.js back-end.

amitaibu commented 9 years ago

Awesome, I'll check it out. Thanks!