Krish
Krish

Reputation: 917

oAuth with Scribe for LinkedIn - accessToken issues

I'm using scribe for logging into LinkedIn in my application.

I would like to know if there is a way to automate the process of getting accessToken so that the user doesn't have to enter the Verifier token.

Possible? If yes, may i get a little help with the same?

Thanks in advance :)

Upvotes: 0

Views: 694

Answers (2)

NickChase
NickChase

Reputation: 1512

You can add the callback to the ServiceBuilder in the current version of Scribe like this:

    OAuthService service = new ServiceBuilder()
                        .provider(LinkedInApi.class)
                        .apiKey(SystemVariables.LINKEDINAPIKEY)
                        .apiSecret(SystemVariables.LINKEDINSECRETKEY)
                        .callback("YOUR_CALLBACK_URL_HERE")
                        .build();

Upvotes: 2

Pablo Fernandez
Pablo Fernandez

Reputation: 105220

You can get the browser redirected to a url of your choice, if you provide it via the callback method of the ServiceBuilder.

Upvotes: 1

Related Questions