# passport_eloqua

> Eloqua OAuth2 strategy for Passport.

Latest version **1.0.5** (published 2017-09-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install passport_eloqua
pnpm add passport_eloqua
yarn add passport_eloqua
bun add passport_eloqua
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2017-09-20 |
| First published | 2017-08-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.4.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Marina Novikova |
| Maintainers | marina.bedrockdata |
| Keywords | passport, eloqua, auth, oauth, oauth2, authentication, identity |

## Links

- npm: https://www.npmjs.com/package/passport_eloqua
- Repository: https://github.com/bedrockdata/passport_eloqua
- Homepage: https://github.com/bedrockdata/passport_eloqua#readme
- Issues: https://github.com/bedrockdata/passport_eloqua/issues
- npm.io page: https://npm.io/package/passport_eloqua

## Dependencies (2)

- [pkginfo](https://npm.io/package/pkginfo.md) 0.2.x
- [passport-oauth](https://npm.io/package/passport-oauth.md) ~0.1.1

## Recent versions

- 1.0.5 (latest) — 2017-09-20
- 1.0.4 — 2017-09-08
- 1.0.3 — 2017-08-24
- 1.0.2 — 2017-08-24
- 1.0.1 — 2017-08-17
- 1.0.0 — 2017-08-16

## README

# passport_eloqua
Eloqua OAuth2 strategy for Passport

## Install
```shell
$ 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.

```js
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

- [passport-oauth2](https://github.com/jaredhanson/passport-oauth2) - OAuth 2.0 Authentication strategy

## Thanks

- [Jared Hanson](http://github.com/jaredhanson)

## License

[The MIT License](http://opensource.org/licenses/MIT)

Copyright (c) 2017 [Bedrock Data Inc](http://github.com/bedrockdata)

---
_Source: https://npm.io/package/passport_eloqua · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
