Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.
/ passport-amebame Public archive

[DEPRECATED] Passport strategy for authenticating with Amebame using the OAuth 2.0 API

Notifications You must be signed in to change notification settings

openameba/passport-amebame

Repository files navigation

DEPRECATED

This repository is no longer maintained.


Passport strategy for authenticating with Amebame using the OAuth 2.0 API.

install

$ npm install passport-amebame --save

Usage

Strategy Configuration

const Amebame = require('passport-amebame');

passport.use(new Amebame.Strategy({
  clientID: 'YOUR_CLIENT_ID', // Required
  clientSecret: 'YOUR_CLIENT_SECRET', // Required
  scope: '', // Optional
  authOrigin: '', // Optional
  profileOrigin: '', // Optional
}, function(accessToken, refreshToken, params, profile, done) {
  User.findOrCreate({ id: profile.id, profile }, function(err, user) {
    if (err) { return done(err); }
    done(null, user);
  });
}));

Authenticate Request

You can see it in the example application.

About

[DEPRECATED] Passport strategy for authenticating with Amebame using the OAuth 2.0 API

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published