Skip to content

Error message should show underlying Client Authentication method #13496

Closed
@jzheaux

Description

@jzheaux

The error message:

This class supports client_secret_basic, client_secret_post, and none by default. Client [%s] is using [%s] instead. Please use a supported client authentication method, or use setRequestEntityConverter to supply an instance that supports [%s].

renders like this:

This class supports client_secret_basic, client_secret_post, and none by default. Client [salesforce-client] is using [org.springframework.security.oauth2.core.ClientAuthenticationMethod@3b4abc2b] instead. Please use a supported client authentication method, or use setRequestEntityConverter to supply an instance that supports [org.springframework.security.oauth2.core.ClientAuthenticationMethod@3b4abc2b]

This would be more informative if it showed the actual client authentication method value instead of the instance reference.

Related to #13476

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions