wp-net / WordPressPCL

This is a portable library for consuimg the WordPress REST-API in (almost) any C# application
MIT License
337 stars 129 forks source link

Jwt auth support #216

Closed christianfrick closed 3 years ago

christianfrick commented 4 years ago

Added JWTAuth authentication method which supports the "JWT Auth" plugin of "Useful Team"

Tests are not updated yet. Should we create an additional class like ApiCredentials which points to another Wordpress instance running the JWT Auth plugin or should we just add another Uri like ApiCredentials.WordPressUriJwtAuth?

After this decision, I will extend JWTAuthTest() resp. add a similar test.

ThomasPe commented 3 years ago

I think we can merge this state (except for those minor comments), I have prepared a docker setup to test against the new JWT plugin. I can add those tests once we merged and will create a new nuget version after everything works.

christianfrick commented 3 years ago

Merging sounds good ;-) Thanks for your support @ThomasPe

keylenjaimes commented 3 years ago

This is awesome!! I installed the new nuget package but still I cannot see the new AuthMethod.

ThomasPe commented 3 years ago

I hadn't updated nuget yet, sorry for the delay. New version is available now.

keylenjaimes commented 3 years ago

You both are great! How can I donate a beer for this project?

Regards,

KJ

ThomasPe commented 3 years ago

I appreciate the kind words. I have a GitHub Sponsors profile, but people saying thank you is already enough :)