Skip to content

Do not authenticate JWT if party-entity cannot be found #7

Description

@DrillSergeant

Current situation
When a JWT token is valid, a party object is expected to be found with the identifier of the token payload. When this object is not to be found, an exception occurs which leads to an 500 response code

Possible reasons for a party entity not to be found

  • User (party) was deleted
  • Account was moved to a differnt user (party)

Expected behaviour
In both cases the JWT should not be valid anymore and the request should result as "unauthorized" instead of 500.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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