lacostabr / socialauth-net

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

Too many Redirects #144

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Setup SocialAuthConfiguration and providers in web.config
2. Setup SocialAuth.NET Module and Handler
3. Add Authorization settings for socialauth as follows
  <location path="SocialAuth">
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
  </location>

4. Add references.

5. Copy and paste SocialAuthLogin.aspx control

6. Place control on aspx Page.

7. Publish application on Windows 2008 Server R2

What is the expected output? What do you see instead?

User Clicks on Google for Authentication

Google Page asks for sharing the info with the [APPLICATION]

After the user click allow Google redirects back to [APPLICATION] 

Expected output: The page must return to the callback URL but I am get 
following message

----------------------------------
This webpage has a redirect loop
The webpage at 
http://[SITENAME]/socialauth/validate.sauth?openid.ns=http%3A%2F%2Fspecs.openid.
net%2Fauth%2F2.0&openid.mode=id_res&openid.op_endpoint=https%3A%2F%2Fwww.google.
com%2Faccounts%2Fo8%2Fud&openid.response_nonce=2012-12-16T07%3A33%3A57Z_yL5CwzAq
bl68g&openid.return_to=http%3A%2F%2Fbiz-dna-testing.co.uk%2Fsocialauth%2Fvalidat
e.sauth&openid.assoc_handle=AMlYA9UhLcoymSTEHKPiZm6P6yxajyQ3E5qMeAPBX-mmrTwU1JMk
umw9&openid.signed=op_endpoint%2Cclaimed_id%2Cidentity%2Creturn_to%2Cresponse_no
nce%2Cassoc_handle%2Cns.ext1%2Cns.ext2%2Cext1.mode%2Cext1.type.firstname%2Cext1.
value.firstname%2Cext1.type.lastname%2Cext1.value.lastname%2Cext1.type.language%
2Cext1.value.language%2Cext1.type.email%2Cext1.value.email%2Cext1.type.country%2
Cext1.value.country%2Cext2.scope%2Cext2.request_token&openid.sig=N8DtC7%2BGZ4Vsb
92CH7iFr3X2YEQ%3D&openid.identity=https%3A%2F%2Fwww.google.com%2Faccounts%2Fo8%2
Fid%3Fid%3DAItOawnxfrjE8cnljDa808t1EpiZ2qkmkngDbVE&openid.claimed_id=https%3A%2F
%2Fwww.google.com%2Faccounts%2Fo8%2Fid%3Fid%3DAItOawnxfrjE8cnljDa808t1EpiZ2qkmkn
gDbVE&openid.ns.ext1=http%3A%2F%2Fopenid.net%2Fsrv%2Fax%2F1.0&openid.ext1.mode=f
etch_response&openid.ext1.type.firstname=http%3A%2F%2Faxschema.org%2FnamePerson%
2Ffirst&openid.ext1.value.firstname=nk&openid.ext1.type.lastname=http%3A%2F%2Fax
schema.org%2FnamePerson%2Flast&openid.ext1.value.lastname=k&openid.ext1.type.lan
guage=http%3A%2F%2Faxschema.org%2Fpref%2Flanguage&openid.ext1.value.language=en&
openid.ext1.type.email=http%3A%2F%2Faxschema.org%2Fcontact%2Femail&openid.ext1.v
alue.email=m.khannaveed%40googlemail.com&openid.ext1.type.country=http%3A%2F%2Fa
xschema.org%2Fcontact%2Fcountry%2Fhome&openid.ext1.value.country=PK&openid.ns.ex
t2=http%3A%2F%2Fspecs.openid.net%2Fextensions%2Foauth%2F1.0&openid.ext2.scope=ht
tp%3A%2F%2Fwww.google.com%2Fm8%2Ffeeds%2F+https%3A%2F%2Fwww.googleapis.com%2Faut
h%2Fuserinfo.profile&openid.ext2.request_token=4%2FU0QqgOtlkol72qAsLpiY2wNsyQcA.
QukD56H7EFsWOl05ti8ZT3anFUhFdwI has resulted in too many redirects. Clearing 
your cookies for this site or allowing third-party cookies may fix the problem. 
If not, it is possibly a server configuration issue and not a problem with your 
computer.
Here are some suggestions:
Reload this webpage later.
Learn more about this problem.
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.

What version of the product are you using? On what operating system?
Version: 2.3
Windows 2008 Server R2 (Hosting Environment)

Please provide any additional information below.
Its good that FACEBOOK and MSN are working fine with no issues, But I am having 
issues with Google.

Your suggestions will be highly appreciated.

Regards,
Muhammad Naveed Khan

Original issue reported on code.google.com by m.khanna...@googlemail.com on 16 Dec 2012 at 7:42

GoogleCodeExporter commented 9 years ago
Anyone? 

Original comment by m.khanna...@googlemail.com on 17 Dec 2012 at 7:16

GoogleCodeExporter commented 9 years ago
Hi,
I am still waiting for response...

Original comment by m.khanna...@googlemail.com on 22 Dec 2012 at 8:48

GoogleCodeExporter commented 9 years ago
I tried everything to make httphandler work but its not working, and I am 
totally blank on this issue.

Original comment by m.khanna...@googlemail.com on 5 Jan 2013 at 11:23

GoogleCodeExporter commented 9 years ago
Anyone?

Original comment by m.khanna...@googlemail.com on 5 Jan 2013 at 8:01

GoogleCodeExporter commented 9 years ago
Hi,

If you're using forms authentication, did you removed SocialAuthHttpHandler 
module and also set Authentication=false  in SocialAuth section's 
authentication element?

Deepak

Original comment by deepak.a...@3pillarglobal.com on 24 Jan 2013 at 7:24

GoogleCodeExporter commented 9 years ago
this issue is resolved.

Original comment by m.khanna...@googlemail.com on 27 Jan 2013 at 7:11

GoogleCodeExporter commented 9 years ago
Appreciated if you could specify cause/resolution to help us improve library.

http://code.google.com/p/socialauth-net/issues/detail?id=144

Deepak

Original comment by deepak.a...@3pillarglobal.com on 28 Jan 2013 at 6:07