Add Ed25519 support to users_jwt sub-module and possibly main jwt module

Created on 22 July 2021, almost 3 years ago
Updated 4 April 2024, 3 months ago

Problem/Motivation

The latest release of the JWT lib added Ed25519 signature support:
https://github.com/firebase/php-jwt/releases/tag/v5.4.0

This would be a faster and more compact option for asymmetric keys, especially for users_jwt

Proposed resolution

Add Ed25519 support - this is possible since the 2.x branch requires at least version 5.5 of the JWT library.

Remaining tasks

Update this to generate Ed25519 also:

\Drupal\users_jwt\Form\UsersGenerateKeyForm

Add option for Ed25519 to

\Drupal\users_jwt\UsersJwtKeyRepository::algorithmOptions

create a new Key for Ed25519 plugin similar to:

class JwtRsKeyType extends KeyTypeBase implements KeyPluginFormInterface {

Document how to generate a Ed25519 key, using php or maybe using signify and converting to NaCl private key
https://blog.mozilla.org/warner/2011/11/29/ed25519-keys/

AND/OR directly support conversion of signify private key to NaCl pub + private.
https://man.openbsd.org/signify.1

User interface changes

Options for keys

API changes

n/a

Data model changes

n/a

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States pwolanin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024