Skip to content

Use JWT For Tokens (Remove Token 'Database') #19

@RobertRosca

Description

@RobertRosca

Currently clients.json stores entries like:

  {
    "bot_id": 1234,
    "bot_site": "...",
    "created_at": "2024-02-12T10:08:04.477772",
    "created_by": "...",
    "proposal_id": 1234,
    "proposal_no": 1234,
    "stream": "some-pattern-1234",
    "token": "............."
  },

On request, if the provided token matches one in the list of clients, that is used.

This was a quick and easy way to do things at the start and made it easy to modify what the tokens were allowed to do, but is a bit annoying now due to keeping this file around and migrating it on changes.

Service could instead issue its own JWT(S?)s containing the required information.

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