emonarafat / socialauth-net

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

Login using google in asp.net 4 with SocialAuth-net #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to implement social auth on asp.net 4 VS2010. But I am getting 
error on the config section of web.config, the following lines:

<configSections>...
    <section name="SocialAuthConfiguration" type="Brickred.!SocialAuth.NET.Core.SocialAuthConfiguration,SocialAuth,Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" allowDefinition="Everywhere" allowLocation="true" />
</configSections>

The problem is discussed here: 
http://stackoverflow.com/questions/6296185/login-using-google-in-asp-net-4-with-
socialauth-net

The system could not find the type, whereas I have added all the binaries and 
referenced them. Kindly help!!!

Original issue reported on code.google.com by jayesh.m...@gmail.com on 9 Jun 2011 at 6:50

GoogleCodeExporter commented 9 years ago
Hi,
Could you please provide the link where from you copied the aforesaid 
problematic configsection tag, as we already fix it yesterday on integration 
guidelines page.

Correct tag:
<section name="SocialAuthConfiguration" 
type="Brickred.SocialAuth.NET.Core.SocialAuthConfiguration, SocialAuth-net, 
Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" 
allowDefinition="Everywhere" allowLocation="true" />
</configSections>

Original comment by tsg.bric...@gmail.com on 10 Jun 2011 at 5:52

GoogleCodeExporter commented 9 years ago
I copied it form the integration page itself. I think i copied it before you 
fixed it :P

Now it works but again i face problem in authentication. On integrating there 
are some errors with each of the services:

1. Google login works fine but redirects me to the homepage everytime when i 
gave a redirect page on the login method: oUser.Login("Google.aspx");

2. Yahoo login works till yahoo login page but after login, is not redirected 
to the website, rather stucked with an //authsub... url.

3. Msn login: Msn says that there is a problem with the site with whom you are 
trying to share information.

I have hosted the above demonstration page here: 
http://www.eprocerp.com/rough.aspx
Kindly help!!!

Original comment by jayesh.m...@gmail.com on 10 Jun 2011 at 5:59

GoogleCodeExporter commented 9 years ago

Hi Jayesh,

I could reproduce errors you have mentioned. Please check following updates:

1. Google problem: Redirection (irrespective of provider and overloaded method 
you call) takes place to home url only (the url mentioned in DefaultUrl 
attribute in web.config). We haven't yet implemented redirection to URL passed 
in as parameter.However, considering your need, I'll pick it as a high priority 
implementation and will create a separate bug for this. Very soon you should 
get this implemented.

2. Yahoo problem: First stuff I noticed is an extra "/" in your URL when 
request returns from provider. You may wish to resolve this. However, I am 
still trying to figure out if there is some problem with Yahoo wrapper as it 
seems to be working fine at our end.

3. MSN problem: This is likely not due to social auth but with your 
registration account. You may wish to cross check your registration with 
http://msdn.microsoft.com/en-us/library/cc287659.aspx. Meanwhile, I will check 
once again if there is some issue with our component.

thanks for your inputs.
we'll do our best to get your all issues resolved.
regards,
Deepak

Original comment by tsg.bric...@gmail.com on 10 Jun 2011 at 6:16

GoogleCodeExporter commented 9 years ago
Hi Deepak,

Thanks for the reply. Kindly check the google redirection and yahoo wrapper 
problem. I'll inform if i get something. Msn application setting seems fine in 
the msn website, but still i am checking it.

Thanks for your time and reply,
With regards,
Jayesh

Original comment by jayesh.m...@gmail.com on 10 Jun 2011 at 6:52

GoogleCodeExporter commented 9 years ago
2. Yahoo Problem: It seems you haven't opted to read public profile while 
registering your application with Yahoo. Please check attached screenshot - 
compare.png illustrating difference with demo site and your site. Please try 
this:
Go to your Yahoo account and select the option to read-only access profile 
(screenshot attached- profile.png)

Please let us know if aforesaid change resolves your Yahoo issue?

Original comment by tsg.bric...@gmail.com on 10 Jun 2011 at 7:27

Attachments:

GoogleCodeExporter commented 9 years ago
Nope. Did the same but that also didn't solve the purpose. Check 
http://www.eprocerp.com/rough.aspx

Original comment by jayesh.m...@gmail.com on 10 Jun 2011 at 9:19

GoogleCodeExporter commented 9 years ago
Hi Jayesh, 

Yahoo seems to be working now on your site. Could you please suggest if you did 
anything other than my previous suggestion to resolve this issue?
regards,
Deepak

Original comment by tsg.bric...@gmail.com on 12 Jun 2011 at 7:37

GoogleCodeExporter commented 9 years ago
Hi Deepak,

I did the same for yahoo profile access as you said earlier. The code i used on 
the button click event is the same as your tutorial, but i just used the full 
length reference this time:

Brickred.SocialAuth.NET.Core.BusinessObjects.SocialAuthUser oUser = new 
Brickred.SocialAuth.NET.Core.BusinessObjects.SocialAuthUser(Brickred.SocialAuth.
NET.Core.BusinessObjects.PROVIDER_TYPE.YAHOO);
oUser.Login("Yahoo.aspx");

Doesn't make much difference though :P
Stucked in the msn one for now !!!

With regards,
Jayesh

Original comment by jayesh.m...@gmail.com on 12 Jun 2011 at 9:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
MSN seems to be working too at your site. I guess you have added the missing 
JSON dll to your project and it started working fine. Please let us know if you 
did any extra step for making MSN work.

regards,
Deepak

Original comment by tsg.bric...@gmail.com on 13 Jun 2011 at 7:42

GoogleCodeExporter commented 9 years ago
Hi,

MSN loging results in a blank page with the website url alongwith the suffix 
//socialAuth/Validate.sauth?wrap_verification_code=.........

This neither reaches my homepage(default) nor redirect page as given....

Regards,
Jayesh

Original comment by jayesh.m...@gmail.com on 13 Jun 2011 at 12:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Well I am not sure of the URL redirection issue but still kindly check if this 
helps: http://code.google.com/p/socialauth-net/issues/detail?id=7

Original comment by jayesh.m...@gmail.com on 15 Jun 2011 at 12:25

GoogleCodeExporter commented 9 years ago
Hi,

Kindly provide a workaround for the callback URL redirection method as soon as 
possible.

Thanks & Regards,
Jayesh

Original comment by jayesh.m...@gmail.com on 17 Jun 2011 at 10:01

GoogleCodeExporter commented 9 years ago
Hi Jayesh,

Have you tried to simply run our demo in your environment? We are not able to 
figure out the issue because in our demo code, the redirection works fine. Can 
you please zip your project and attach it here?
Warm regards,
Abhinav

Original comment by abhinavm...@gtempaccount.com on 17 Jun 2011 at 1:12

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,

The website is too big to attach. However I have found out the error cause. The 
error is in web.config

If I write use authentication mode as None then redirection  takes place very 
well. But if I use authentication mode as Forms then it redirects back to the 
default URL. I have attached the web.config file along with this comment. Note: 
Removing the cookieless attribute redirects to default.aspx.

With regards,
Jayesh

Original comment by jayesh.m...@gmail.com on 17 Jun 2011 at 3:43

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Jayesh,

We shall be releasing SocialAuth.NET 1.1 tomorrow. This would likely resolve 
most of issues faced by you.

regards,
Deepak

Original comment by tsg.bric...@gmail.com on 5 Jul 2011 at 1:41

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Hi,

Sometimes when a user is already logged into his gmail a/c in the browser and 
thereafter he logs in from my site using Login form Gmail/social auth, then an 
error thrown user declined request for sharing.

When in actual, user clicked on allow sharing but unchecked the box of - 
Remember this approval.

Regards,
Jayesh

Original comment by jayesh.m...@gmail.com on 17 Jul 2011 at 4:34

Attachments:

GoogleCodeExporter commented 9 years ago
I am having same issue as Jayesh.

Original comment by IMo...@gmail.com on 4 Sep 2011 at 8:46

GoogleCodeExporter commented 9 years ago
I have Blank Page after user login in MSN and dont redirect .........
Please Help ................

Original comment by senior.m...@gmail.com on 5 Sep 2011 at 3:37

GoogleCodeExporter commented 9 years ago
This issue chain is related with SocialAuth 1.1
Redirection mechanism has been improved in 2.x version. Please upgrade to 2.x 
if you are still using 1.x. Should you still face similar errors, please raise 
a new ticket and we shall definitely help you.

regards,
Deepak

Original comment by daggar...@brickred.com on 5 May 2012 at 11:36

GoogleCodeExporter commented 9 years ago
In my site i am using socialauth-net code for LinkedIn.After login via 
LinkedIn, browser does not redirect to PleaseWait.aspx page. 
My code is--

    Protected Sub btnLinkedIn_ServerClick(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnLinkedIn.ServerClick
            Dim oUser As New SocialAuthUser(PROVIDER_TYPE.LINKEDIN)
            oUser.Login(PROVIDER_TYPE.LINKEDIN, "PleaseWait.aspx", Nothing)
    End Sub 

Second time when i clicks on LinkedIn icon browser redirects on PleaseWait.aspx 
page.
Same problem with all social icons.

Original comment by sharma.s...@gmail.com on 24 Nov 2012 at 10:37

GoogleCodeExporter commented 9 years ago
Hi,

Is logging in with Google still supported? I have noticed it only works with 
Facebook and Linkedin and every other provider gives an error. I get an error 
in the demo application and in my own application thats attached. 

I am trying to allow the user to import contacts from Google, MSN, Yahoo and 
Linkedin. 

It seems like Linkedin doesn't allow importing Email addresses. It does show me 
the names however. 

Thank you for your help. 

Original comment by bilalml...@gmail.com on 13 Apr 2013 at 7:05

Attachments: