Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

cannot use ConnectController with JdbcConnectionRepository #225

Open
enricjaen opened this issue Feb 24, 2017 · 0 comments
Open

cannot use ConnectController with JdbcConnectionRepository #225

enricjaen opened this issue Feb 24, 2017 · 0 comments

Comments

@enricjaen
Copy link

enricjaen commented Feb 24, 2017

Hello,

AFAIK, it's not possible to call "/connect/linkedin"and store the Connection in the JdbcConnectionRepository because there is still not Principal. And the Principal cannot be created without the Connection.

Shouldn't exist an interceptor between the Connection creation and the addConnection? This way it would be possible to create the Principal and then store Connection with userId the JdbcConnectionRepository

ConnectController.java:
public RedirectView oauth2Callback(...) {
Connection<?> connection = connectSupport.completeConnection(connectionFactory, request);
// add interceptor here
addConnection(connection, connectionFactory, request);
}

What are your thoughts?

Regards
Enric

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant