usefulteam / jwt-auth

WordPress JSON Web Token Authentication
https://wordpress.org/plugins/jwt-auth/
124 stars 50 forks source link

Wordpress login support #36

Closed simahero closed 2 years ago

simahero commented 3 years ago

Dear UsefulTeam!

I am not sure, how this plugin gonna change over the time. I tought these features would be best implemented in the plugin itself.

Adding Wordpress login support

  1. Via setting a cookie - filter: _jwt_setcookie
  2. Via performing an action - filter: _jwt_dohook , action: _jwt_wplogin
sun commented 2 years ago

I agree, the regular login cookies are a different authentication concept. They should not be mixed with a token based authentication flow.

The closest to this are so called refresh tokens. I am implementing them currently in #33. Probably ready for merge and usage at the end of this month.

Refresh tokens allow clients to create new access tokens without storing the user login credentials on the client-side upon initial login. Maybe that is what you are looking for instead?

contactjavas commented 2 years ago

Agree with @sun . Sorry, let me close this PR @simahero :)

simahero commented 2 years ago

This was a usecase, I do not even remeber. Simple do_action() hooks would be appreciated imo!