1.0.5 • Published 7 years ago

passport_eloqua v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

passport_eloqua

Eloqua OAuth2 strategy for Passport

Install

$ npm install passport_eloqua

Usage

Configure Strategy

The Eloqua authentication strategy authenticates Oracle Eloqua API users via OAuth 2.0 mechanism. The strategy requires a verify callback, which accepts these credentials and calls done providing a user, as well as options specifying a client ID, client Secret, and callback URL.

passport.use(new EloquaStrategy({
    authorizationURL: 'https://login.eloqua.com/auth/oauth2/authorize',
    tokenURL: 'https://login.eloqua.com/auth/oauth2/token',
    clientID: CLIENT_ID,
    clientSecret: CLIENT_SECRET,
    callbackURL: "http://localhost:3000/auth/example/callback",
    scope: 'full' // default
  }, 
  (accessToken, refreshToken, profile, done) => {
    done(error);
  }
));

Related Modules

Thanks

License

The MIT License

Copyright (c) 2017 Bedrock Data Inc