gabesullice / jwt

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

Add support for additional algorithms #7

Closed jonathangreen closed 7 years ago

jonathangreen commented 7 years ago

JWT module now supports all the algorithms supported by the underlying firebase JWT library. This includes the asymetric RSA algorithm RSA256. The algorithm is set in the configruation page.

In order to support both asymmetric and symmetric algorithms, a couple new key types have been defined for the key module. This lets us use PEM encoded private keys for RSA encryption.

This pull contains the commits submitted in #5 and #6. I can reroll this pull if it needs, once those pull requests land. Just wanted to get it submitted.