Coder Social home page Coder Social logo

waychan23 / koa2-oauth-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oauthjs/express-oauth-server

41.0 41.0 16.0 71 KB

Complete, compliant and well tested module for implementing an OAuth2 Server/Provider with koa2 in node.js

License: MIT License

JavaScript 100.00%

koa2-oauth-server's People

Contributors

ancamcheachta avatar daannijkamp avatar dirkcuys avatar euskadi31 avatar fabianfett avatar maxtruxa avatar mjsalinger avatar nunofgs avatar typingduck avatar waychan23 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

koa2-oauth-server's Issues

Issue with complete example.

When retrieving user details multiple times request fails.
It seems as the model object is return wrong values.
user: { username: 'waychan23' }
After second call the object becomes
user: { username: { username: 'waychan23' } }
etc...

This can be solved by removing these lines from model.js:
token.client = { id: token.client };
token.user = { username: token.user };

Inside the api-router.js line 43 should look like this:
detail = userDb.get(user);

In-Memory example doesn't work

I'm using the in-memory model and the code from the first page and I'm getting a lot of "model does not implement" errors.

For example:

"Invalid argument: model does not implement `saveAuthorizationCode()`"

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.