oauthjs / node-oauth2-server

Complete, compliant and well tested module for implementing an OAuth2 Server/Provider with express in node.js
https://npmjs.org/package/oauth2-server
MIT License
4.02k stars 933 forks source link

Does this library actually work? #753

Open vincentpham13 opened 1 year ago

vincentpham13 commented 1 year ago

I can not see any code examples or documentation details, even got some weird errors.

{ "statusCode": 401, "message": "Unauthorized request: no authentication given" }

killmenot commented 1 year ago

@vincentpham13 Yes it works. You need to pass custom authenticateHandler to authorize handler or make sure there is authentication exists.

Please go though this stuff https://github.com/oauthjs/node-oauth2-server/issues/358 https://github.com/oauthjs/node-oauth2-server/issues/264

There is an example of implementation https://github.com/foundersandcoders/open-tourism-platform/tree/master

jorenvandeweyer commented 1 year ago

This library is not maintained anymore and has some security issues. You should use this maintained successor instead!

Lucyfurnice commented 12 months ago

This library is not maintained anymore and has some security issues. You should use this maintained successor instead!

thank you.