Giter Site home page Giter Site logo

te-yujianishiyama / passport-yj Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lewuathe/passport-yj

0.0 1.0 0.0 52 KB

Oauth2.0 npm package for Yahoo! JAPAN corresponds to YConnect

License: MIT License

Makefile 4.35% JavaScript 85.59% Perl 10.06%

passport-yj's Introduction

passport-yj - OAuth2.0 npm package for Yahoo! JAPAN YConnect

Build Status

NPM

Introduction

Passport strategy for authenticating with YConnect using the OAuth 2.0 API

This module can be used with passport in Node.js. You can integrate into below applications or frameworks. Connect-style middleware, including Express.

Install

$ npm install passport-yj

Usage

Configuration Strategy

This YConnect passport module requires your application' id. You can get this id from YConnect admin

Authorization Endpoint

var passport = require('passport');

passport.use(new YJStrategy({
    clientID     : <YAHOO_JAPAN_APP_ID>,
	clientSecret : <YAHOO_JAPAN_APP_SECRET>,
	callbackURL  : <CALL_BACK_URL>,
}, function(accessToken, refreshtoken, profile, done){
    // With this accessToken you can access user profile data.
	// In the case that accessToken is expired, you should
	// regain it with refreshToken. So you have to keep these token
	// safely. done will get user profile data such as openid in YConnect
});

Token Endpoint

With this module, you don't have to do anything to get accessToken. As you see above, you have already obtain accessToken and refreshToken. So this process is not required with this module.

License

MIT License. Please see the LICENSE file for details.

passport-yj's People

Contributors

gologo13 avatar lewuathe avatar horiuchi avatar pirosikick avatar te-yujianishiyama avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.