Skip to content

Add JTI_CLAIM to SIMPLE_JWT config #106

@lorddaedra

Description

@lorddaedra

Add ability to change jti key name for integration with Auth0 (Auth0 do not add jti to jwt by default and you can't add jti via hooks there).

So access_token['jti'] = require('uuid').v4(); will not work, but access_token['https://domain.com/jti'] = require('uuid').v4(); will add https://domain.com/jti

It can look like:

SIMPLE_JWT = {
    ...
    'JTI_CLAIM': 'https://domain.com/jti',
}

default value: 'jti'

Related question on Auth0 support forum: https://community.auth0.com/t/set-token-exp-jti-in-client-credentials-exchange-hook/6732

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