Skip to content

Add logging #8589

@Budlee

Description

@Budlee

Expected Behavior

The Jwt Validators that are provided on the oauth jose package have no logging in them when they fail. It makes it hard when debugging to understand when a Jwt Token has failed and for what reason.
I'm not sure if this is on purpose for security reasons to not log the failure

Current Behavior

No loggin in the default JWT Validators

Context

This has slowed down debugging and understanding which validator has failed.
Debug messages when the logging is set to debug would be helpful.

To get an insight into what JWTs are failing have patched the validators and manually setup the JwtDecoder/ReactiveJwtDecoder.

They can not be extended as they are all Final so patching is the only option.

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions