DipeshSangani / socialauth-android

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

LinkedIn Scope permissions in Authentication Dialog Box #78

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Changing the scope permissions from developer site of LinkedIn
  is not effecting the authentication dialog box. In other words,
  I want Full Profile and Email address permission on dialog box
  but it's showing all scope permission.

What is the expected output? What do you see instead?
  I want Full Profile and Email address permission on dialog box
  but it's showing all scope permission.

What version of the product are you using? On what operating system?
I am using socialauth-4.0 jar

Please provide any additional information below.

Original issue reported on code.google.com by sush...@townscript.com on 27 May 2013 at 8:18

Attachments:

GoogleCodeExporter commented 8 years ago
Hi , please paste ur code.

Original comment by vineet.a...@3pillarglobal.com on 27 May 2013 at 8:25

GoogleCodeExporter commented 8 years ago
I am simply calling this.

SocialAuthAdapter adapter = new SocialAuthAdapter(new ResponseListener());
adapter.authorize(getActivity(), Provider.LINKEDIN);

Original comment by sush...@townscript.com on 27 May 2013 at 8:28

GoogleCodeExporter commented 8 years ago
Thanks for quick reply.

Original comment by sush...@townscript.com on 27 May 2013 at 8:32

Attachments:

GoogleCodeExporter commented 8 years ago
Do i need to re - generate the API key after any change in Default Scope of 
user agreement?

Original comment by sush...@townscript.com on 27 May 2013 at 9:44

GoogleCodeExporter commented 8 years ago
Hi Sushant , Thanks for feedback. I let you know soon.

Original comment by vineet.a...@3pillarglobal.com on 28 May 2013 at 9:32

GoogleCodeExporter commented 8 years ago
Hi Sushant,

we are including to set custom permissions by code in coming version.

meanwhile you can try setting custom permissions for linkedin by adding in 
oauth_consumers file. ( see like we have set custom permission for facebook)

if it not works, then you have to wait for new api release.

Original comment by vineet.a...@3pillarglobal.com on 30 May 2013 at 2:25

GoogleCodeExporter commented 8 years ago

Original comment by vineet.a...@3pillarglobal.com on 30 May 2013 at 2:25

GoogleCodeExporter commented 8 years ago
Hi Vineet,

Thanks for solution, i will try out and let you know.

Would you tell me approximate date of next release, 
so i can check for new api on that day or 
may be you can inform me by making comment on this issue.  

Original comment by sush...@townscript.com on 30 May 2013 at 2:33

GoogleCodeExporter commented 8 years ago
Hi Vineet,

I did what you said-->

oauth_consumer.properties

#LinkedIn
api.linkedin.com.consumer_key = xxxxxxxxxxxx
api.linkedin.com.consumer_secret = xxxxxxxxxxxxxx
api.linkedin.com.custom_permission = r_fullprofile, r_emailaddress

But still getting same result.

Original comment by sush...@townscript.com on 31 May 2013 at 7:54

GoogleCodeExporter commented 8 years ago

Original comment by vineet.a...@3pillarglobal.com on 11 Jun 2013 at 6:51

GoogleCodeExporter commented 8 years ago
Hi, I have the same problem. I would like to get user's basic profile and 
e-mail address. Setting these permissions on LinkedIn doesn't change anything 
on the logging screen. Would be grateful if you took a look on this issue. 
Thank you!

Original comment by woj...@visuu.com on 11 Jun 2013 at 10:38

GoogleCodeExporter commented 8 years ago

Original comment by l...@3pillarglobal.com on 27 Jun 2013 at 8:14

GoogleCodeExporter commented 8 years ago
#LinkedIn
api.linkedin.com.consumer_key = xxxxxxxxxxxx
api.linkedin.com.consumer_secret = xxxxxxxxxxxxxx
api.linkedin.com.custom_permissions = r_fullprofile, r_emailaddress

use this it will works , you need to use word permissions instead of permission

Original comment by vineet.a...@3pillarglobal.com on 28 Jun 2013 at 9:53

GoogleCodeExporter commented 8 years ago
Hi I got error when I add custom permissions

11-16 11:29:49.674: D/SocialAuthAdapter(12831): Selected provider is linkedin
11-16 11:29:49.674: D/SocialAuthAdapter(12831): Loading keys and secrets from 
configuration
11-16 11:29:49.714: I/SocialAuthConfig(12831): Loading application configuration
11-16 11:29:49.734: D/SocialAuthAdapter(12831): Starting webview for 
authentication
11-16 11:29:49.734: I/LinkedInImpl(12831): Loading plugins
11-16 11:29:49.734: I/LinkedInImpl(12831): Loading plugin :: 
org.brickred.socialauth.plugin.linkedin.FeedPluginImpl
11-16 11:29:49.744: I/LinkedInImpl(12831): Loading plugin :: 
org.brickred.socialauth.plugin.linkedin.CareerPluginImpl
11-16 11:29:49.744: I/OAuth1(12831): Determining URL for redirection
11-16 11:29:52.037: D/SocialAuthError(12831): 
org.brickred.socialauth.exception.SocialAuthConfigurationException: Application 
keys are not correct. The server running the application should be same that 
was registered to get the keys.
11-16 11:29:52.037: D/GiveAwayFragment(12831): Authentication Error: URL 
Authentication error

Any solution?

Original comment by prince21...@gmail.com on 16 Nov 2013 at 6:05

GoogleCodeExporter commented 8 years ago
I Got it...

The Problem is : Spacing are not allowed between permissions.
It's Look Like...

 #LinkedIn
api.linkedin.com.consumer_key = xxxxxxxxxxxx
api.linkedin.com.consumer_secret = xxxxxxxxxxxxxx
api.linkedin.com.custom_permissions = r_fullprofile,r_emailaddress,r_contactinfo

use this it will works well.

Original comment by prince21...@gmail.com on 16 Nov 2013 at 6:26