yubrajpokharel/socialauth

Request for multiple key sets

Closed this issue · 3 comments

There is a requirement for using different API key-secret combination for 
different users of the website.
Current version (4.3) of socialauth doesn't support this, it only allows one 
key-secret pair for each provider.

Is there any provision to make the above case work? 
Are there any plans to add this functionality?
If we do the modification, which part of the code should be modified to support 
this.

Original issue reported on code.google.com by mit...@blusynergy.com on 28 Jan 2014 at 1:16

I am also getting same issue, i have many users whose secret key is different 

Original comment by che...@blusynergy.com on 29 Jan 2014 at 5:28

You can use the addProviderConfig(final String providerId,final OAuthConfig 
config) method of SocialauthConfig class.

Create a socialauthConfig object.
Create a OAuthConfig object for the required provider and add this object using 
above method.
Create new SocialAuthManager object in that case and pass this configuration to 
that manager object.

Original comment by tarun.na...@3pillarglobal.com on 29 Jan 2014 at 1:18

Please open a new issue if you are still facing the problem.

Original comment by tarun.na...@3pillarglobal.com on 5 Feb 2014 at 3:25

  • Changed state: Done