gabesullice / jwt

https://www.drupal.org/project/jwt
18 stars 12 forks source link

Externally generated jwt #19

Open magick93 opened 6 years ago

magick93 commented 6 years ago

Hello

Does this module support the use (validation, auth) of tokens that are generated by external, 3rd party auth providers?

Thanks

gabesullice commented 6 years ago

Yes, you'll have to implement a custom event subscriber though

johnreytanquinco commented 6 years ago

also interested in this approach, im curious on how do you implement custom event subscriber @gabesullice , can you please give us clear example how to do that? Appreciate your response.

magick93 commented 6 years ago

Does this line mean it will only work with Drupal generated jwt? https://github.com/gabesullice/jwt/blob/8.x-0.x/modules/jwt_auth_consumer/src/EventSubscriber/JwtAuthConsumerSubscriber.php#L58