November 2017
Intermediate to advanced
542 pages
14h 24m
English
Now, to complete the SocialConfig.java configuration, we need to construct ProviderSignInController, which is initialized with ConnectionFactoryLocator, usersConnectionRepository, and SignInAdapter. The ProviderSignInController interface is a Spring MVC controller for handling the provider user sign-in flow. An HTTP POST request to /signin/{providerId} initiates a user sign-in with {providerId}. Submitting an HTTP GET request to /signin/{providerId}?oauth_token&oauth_verifier||code will receive the {providerId} authentication callback and establish the connection.
A ServiceLocator interface is used for creating the ConnectionFactory instances. This factory supports lookup by providerId and by apiType, based ...
Read now
Unlock full access