Coder Social home page Coder Social logo

cloudcodeoauthgithubtutorial's Introduction

Adding Third-Party Authentication to your Web App

This project implements the OAuth2 process in Parse.com Cloud Code to enable "Login with GitHub" for a web app.

Find more information here

cloudcodeoauthgithubtutorial's People

Contributors

dioubernardo avatar gfosco 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  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  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

cloudcodeoauthgithubtutorial's Issues

Session token revoked on other devices with password update

Note: I'm using the REST API for my auth implementation as opposed to this example's Cloud Code approach. This may not be an issue in Cloud Code.

I've noticed that with revocable sessions and the workaround of updating a user's password in order to become the user and get the session token, per #7 , my session token is likewise updated which has the effect of invalidating the previous session token that may have been used to log in on other devices.

In the new enhanced sessions blog post, it mentions unique session objects per device, however it seems when logging in from the REST API (and perhaps Cloud Code as well?) there isn't a way to determine which installation referred the login and will just default to updating whatever token is available.

Any ideas on how to create a unique session and or avoid invalidating the current session token that may span across multiple devices? Perhaps there is a way to specify the installationId that the user session should be associated with and as such specify which session token to invalidate upon updating a user's password.

Not working

I am new to this technology. please forgive if the issue is silly, but provide a solution.when 'parse new' is executed, i get "X-Parse-REST-API-Key"" while the code says to enter the javascript key. Is it same? everytime i am running the app, i am getting a login with gitHub failed promt.

User support for OAuths logins

I'm not sure this is the best place for this feedback, feel free to tell me where to post it instead. While reading the tutorial, one thing that stuck out to me was the requirement to make a random u/p for the User object on Parse. It seems like this is something that Parse could make easier, eh? Some type of quick utility for folks planning on using third party auth.

(To be clear, it isn't that hard of course - folks could copy exactly what you guys did in the tut - just seems like something that could be made even more easy. ;)

It is not working

In row 169 in main.js
user.getSessionToken()

The User, Session and TokenStorage is ok but the functions always is returning "undefined"

Object [object Object] has no method 'getSessionToken'

When I run this example code in my own account, I get an error on the oauthCallback part of the transaction:

Result: TypeError: Object [object Object] has no method 'getSessionToken'
at Parse.Promise.as.then.then.then.then.then.then.error (github.js:169:51)
at r (Parse.js:2:3909)
at Parse.js:2:3459
at Array.forEach (native)
at Object.w.each.w.forEach as _arrayEach
at n.extend.resolve (Parse.js:2:3410)
at Parse.js:2:3989
at r (Parse.js:2:3909)
at Parse.js:2:3459
at Array.forEach (native)

I do see rows created in my Users and TokenStorage tables. Any ideas?

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.