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

Make ConnectController and ProviderSignInController more extendable #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michaellavelle
Copy link
Contributor

It would be really useful to be able to extend ConnectController and ProviderSignInController to add custom callback methods. For example, the callbacks from LastFm's api are neither OAuth1 or OAuth2 but are similar (using a different request parameter name). Adding new callback methods means requiring much of the functionality of the existing callback methods, but the existing callback methods use private helper methods and attributes. Making the visibility of these helper methods and attributes protected rather than private would make extending these controllers easier.

See

https://github.com/michaellavelle/spring-social-lastfm-non-oauth-web/blob/master/src/main/java/org/springframework/social/lastfm/nonoauth/connect/web/LastFmNonOAuthSignInController.java

for an example of this use case.

This controller extends a custom controller class

https://github.com/socialsignin/spring-social-web-non-oauth-extension/blob/master/src/main/java/org/springframework/social/connect/web/ExtensibleProviderSignInController.java

but could simply extend the existing ProviderSignInController if these visibility modifications were made.

…rotected to allow these controllers to be extended
@axelhzf
Copy link

axelhzf commented Oct 29, 2012

Why it isn't add to master?? I'm working on some redirect after login and I need overwrite this methods

@pivotal-issuemaster
Copy link

@michaellavelle Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

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

Successfully merging this pull request may close these issues.

3 participants