Skip to content

OAuth2LoginAuthenticationFilter should set AuthenticationDetails #6866

Closed
@ddevrien

Description

@ddevrien

Summary

OAuth2LoginAuthenticationFilter is not setting a WebAuthenticationDetails on the OAuth2AuthenticationToken object that is returned. It does set a WebAuthenticationDetails on the authenticationRequest but this instance is lost later on.

I'm doing some post-processing in a AuthenticationSuccessHandler using a custom WebAuthenticationDetails which is currently only working for form login, not for OAuth2 login.

Actual Behavior

AuthenticationDetails is always null when using OAuth2 login

Expected Behavior

An instance of WebAuthenticationDetails is set.

Metadata

Metadata

Assignees

Labels

in: oauth2An issue in OAuth2 modules (oauth2-core, oauth2-client, oauth2-resource-server, oauth2-jose)status: ideal-for-contributionAn issue that we actively are looking for someone to help us withtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions