Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does TreeGateway expect an external User service? #132

Open
sivabudh opened this issue May 15, 2018 · 0 comments
Open

Does TreeGateway expect an external User service? #132

sivabudh opened this issue May 15, 2018 · 0 comments

Comments

@sivabudh
Copy link

For example, if I'm using GoogleStrategy as follows:

var passport = require('passport');
var GoogleStrategy = require('passport-google-oauth').OAuthStrategy;

passport.use(new GoogleStrategy({
    consumerKey: GOOGLE_CONSUMER_KEY,
    consumerSecret: GOOGLE_CONSUMER_SECRET,
    callbackURL: "http://www.example.com/auth/google/callback"
  },
  function(token, tokenSecret, profile, done) {
      User.findOrCreate({ googleId: profile.id }, function (err, user) {
        return done(err, user);
      });
  }
));

Is the User model expected to be a separate (micro)service which TreeGateway will connect to? Since TreeGateway is an Express application, is there a canonical way to extend it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant