Why is ProviderSignInUtils.getConnection deprecated

I try Spring "Social Subscription" using SocialAuthenticationFilter, which recommends by ProviderSignInController.

In the registration handler method, I should get the user profile data using

Connection<?> connection = ProviderSignInUtils.getConnection(request);

as the documentation says .

But I found that the static method is getConnectiondeprecated, and instead an instance method is suggested getConnectionFromSession. When I tried to enter ProviderSignInUtilsto use the instance method, I saw that there was no such bean in the application context.

So, I liked to know how to do it, and why it is getConnectionout of date.

Thanks Sanjay

+4
source share
1

ProviderSignInUtils, , SessionStrategy, ProviderSignInUtils bean. , , Spring .

.

+3

All Articles