Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

access token validation should not require a sub claim #333

Closed
@sigratton

Description

The current implementation of jsonWebToken.verify enforces that a sub claim is present in the token. There is no notion of a sub claim in an access token that has been obtained via a client credentials flow, since it is designed for server to server interaction. Hence the BearerStrategy returns a 401 when presented with an token from client creds, because the jwt verify fails on line 170/171

I suggest the check on line 170 & 171 be removed. Happy to submit a PR.

Metadata

Assignees

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