node-oauth / node-oauth2-server

🚀 The successor to oauthjs/oauth2-server. 🔒 Complete, compliant, maintained and well tested OAuth2 Server for node.js. Includes native async await and PKCE.
https://www.npmjs.com/package/@node-oauth/oauth2-server
MIT License
286 stars 39 forks source link

Development #260

Closed jankapunkt closed 10 months ago

jankapunkt commented 10 months ago

Merge development into master, making 5.0.0 the new stable

jankapunkt commented 10 months ago

@eddy-minet-holis I think I don't understand, does release 5.0.0 fix the issue you described with the code challenge?

jankapunkt commented 10 months ago

@jorenvandeweyer I added three missing files that were removed by merge-override. Master should not again point to the same HEAD as development. From here we should work keep up working on development and merge into the respective target branches. Edit: would you mind to review and approve again?

jorenvandeweyer commented 10 months ago

Approved it again.

@jankapunkt I also suggest we stop using release-x.y.z branches and only use releases. I think this is a better way to manage our releases since there will never be any new commits to a released branch.

So to clarify

I suggest we clean up and delete all our branches

jankapunkt commented 10 months ago

@jorenvandeweyer I fully agree with your proposal.

eddy-minet-holis commented 10 months ago

@eddy-minet-holis I think I don't understand, does release 5.0.0 fix the issue you described with the code challenge?

Yes. And I think the fix should be applied for 4.3 users. Actually the workaround is easy when using the lib, but without it the PKCE flow just can't work :

req.body.code_challenge = req.query.code_challenge; req.body.code_challenge_method = req.query.code_challenge_method: const oauthReq = new oauth2.Request(req); const oauthRes = new oauth2.Response(res); ...

talking about: commit ca43d4aa08c8eea0b3715442c0de7dc7278f79a6

jankapunkt commented 10 months ago

@eddy-minet-holis I published a fix as 4.3.3, feel free to test and please file an issue if this still not fixes things.

@jorenvandeweyer in concordance with your proposed branch structure I also aligned the NPM tags:

see: https://www.npmjs.com/package/@node-oauth/oauth2-server?activeTab=versions

eddy-minet-holis commented 10 months ago

@eddy-minet-holis I published a fix as 4.3.3, feel free to test and please file an issue if this still not fixes things.

Works great in 4.3.3, thanks!