dinasaif / socialauth-android

Automatically exported from code.google.com/p/socialauth-android
0 stars 0 forks source link

How to use GenericOAuth2Provider #99

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Any help would be appreciated.
I'm trying to use GenericOAuth2Provider to authenticate against the latest 
linkedin oauth2.0
for the life of me I don't understand how to create a new Provider since 
everything is hardcoded in the library.

From what I could see to invoke a specific provider to authenticate you need to 
call:

adapter.authorize(LoginActivity.this, SocialAuthAdapter.Provider.LINKEDIN);

How do I make it authenticate against my GenericOAuth2Provider. here is the 
configuration I'm using.
of course I'll need to add the state to the authorization url (taking cate of 
that later).

                    OAuthConfig oAuthConfig = new OAuthConfig("KEY","SECRET");
                    oAuthConfig.setAuthenticationUrl("https://www.linkedin.com/uas/oauth2/authorization");
                    oAuthConfig.setAccessTokenUrl("https://www.linkedin.com/uas/oauth2/accessToken");
                    oAuthConfig.setCustomPermissions("");
                    GenericOAuth2Provider linkedInProvider = new GenericOAuth2Provider(oAuthConfig);

Original issue reported on code.google.com by y...@taguri.com on 25 Jun 2013 at 7:36

GoogleCodeExporter commented 8 years ago
hi , can you please let me know what you want to do.

Original comment by l...@3pillarglobal.com on 29 Jun 2013 at 8:28

GoogleCodeExporter commented 8 years ago
I would like to connect to linkedin using oauth 2.0
—
Sent from Mailbox for iPhone

On Sat, Jun 29, 2013 at 11:28 PM, null <socialauth-android@googlecode.com>
wrote:

Original comment by y...@taguri.com on 30 Jun 2013 at 5:55

GoogleCodeExporter commented 8 years ago

Original comment by vineet.a...@3pillarglobal.com on 17 Jul 2013 at 11:45

GoogleCodeExporter commented 8 years ago
Hi, we have include more functionality to test new providers using 
GenericOAuth2 Provider.

Please find blog here.

https://github.com/3pillarlabs/socialauth-android/wiki/Create-Own-Social-Network
-Provider

Although recommended way is to modify socialauth java and then test it with 
socialauth android. 

Original comment by vineet.a...@3pillarglobal.com on 4 Oct 2013 at 12:19