The OAuth2LoginAuthenticationProvider performs most of the same logic that exists in OAuth2AuthorizationCodeAuthenticationProvider. We should re-factor to allow for reuse.

Comment From: rwinch

Related to this is that OAuth2LoginAuthenticationToken could extend OAuth2AuthorizationCodeAuthenticationToken which seems logical and would allow the existing OAuth2 Log In code to be passive.

Comment From: pdelert

@jgrandja @rwinch can I take this enhancement ?

Comment From: jgrandja

@pdelert That would be great! Thank you.

Comment From: pdelert

@jgrandja please have a look here #7356

Comment From: rh-id

hi @jgrandja , @pdelert . do you mind if i takeover this issue?

Comment From: jgrandja

That would be great @rh-id. But let's wait for confirmation from @pdelert as they have an open PR #7356 but I haven't heard back from them in a while. Please wait 1-2 weeks for a confirmation and if we don't hear from them then go ahead with the PR. Thanks!

Comment From: rh-id

hi @jgrandja i had created PR #8170