Skip to content

Implementing custom token generator #732

@KhashayarMirMS

Description

@KhashayarMirMS

Hi,
I want to implement a custom token generator to use JWT in DOT.
There are several issues related to this problem which lead to this pull request: #467. But the pull request is about writing custom models for tokens which doesn't handle token generation.

The solution that I've currently found is to write a custom Server Class to pass a custom generator function to BearerToken. But I've seen that Server Class instances are initialized with a token_generator function passed to them, but I can't find out where the instances are initialized.

I would appreciate if you could help me with this matter.

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