Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AJ ONeal committed Feb 27, 2014
1 parent d6ba159 commit 0226f06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -32,6 +32,13 @@ passport.use(new LdsAuthStrategy({
callbackURL: "http://localhost:3000/oauth2/ldsauth/callback"
},
function(accessToken, refreshToken, profile, done) {
if (profile.guest) {
// this is the built-in dummy user 'dumbledore', not an actual user
// be aware that anyone can log into ldsauth.org with this test user.
// The intent is that they can experiment with your app if they don't yet
// have an lds.org account and see if it it's worth the hassle of
// finding their MRN to sign up
}
User.findOrCreate({ ldsOrgId: profile.currentUserId }, function (err, user) {
return done(err, user);
});
Expand Down

0 comments on commit 0226f06

Please sign in to comment.