Skip to content

[v1.6.7] Registered JWS algorithms like EdDSAAlgorithm are "unsupported" on authlib.jose.jwt operations #859

@danielfbnunes

Description

@danielfbnunes

On v1.6.7, any operations using authlib.jose.jwt like

return jwt.encode(header, payload, import_any_key(key))

are ignoring the registered JWS algorithms that are not in the default list

"HS256",
"HS384",
"HS512",
"RS256",
"RS384",
"RS512",
"ES256",
"ES384",
"ES512",
"PS256",
"PS384",
"PS512",

Previously, the registered algorithms were considered

jwt = JsonWebToken(list(JsonWebSignature.ALGORITHMS_REGISTRY.keys()))

What should be the approach from now on for algorithms outside of the default list?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions