nguyentientoan / socialauth-net

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

Facebook authentication 500 internal server error #175

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Application redirect to fb authentication page and given user credentials 
and click login button
2. I get the fb error message - Given URL is not allowed by the Application 
configuration.: One or more of the given URLs is not allowed by the App's 
settings. It must match the Website URL or Canvas URL, or the domain must be a 
subdomain of one of the App's domains.
3. when I click okay button on the fb error dialog page, i get the 500- 
internal server error.

What is the expected output? What do you see instead?
I need to redirect back to my website page and show the welcome.aspx page

What version of the product are you using? On what operating system?
IIS 7.0, Windows 2008 server

Please provide any additional information below.
when I try to work with http://localhost:4884/ it is working fine and able to 
authenticate and return back to welcome.aspx page after fb authentication...

Original issue reported on code.google.com by Ba...@nichevid.com on 9 Jun 2013 at 4:11

Attachments:

GoogleCodeExporter commented 8 years ago
to add to my issue, we have hosted our site at amazon.com servers. Early 
response is much appreciated. thanks.

Original comment by Ba...@nichevid.com on 12 Jun 2013 at 4:37

GoogleCodeExporter commented 8 years ago
Please check for 2 things:
1. You're using exactly same consumer key and secret as obtained in Facebook 
registration

2. Return URL which I see in your url is 
www.nichevideo.com/socialauth/validate.sauth should match the canvas Url i.e. 
the Url you've registered application with.

Deepak

Original comment by deepak.a...@3pillarglobal.com on 12 Jun 2013 at 5:13

GoogleCodeExporter commented 8 years ago
Thanks Deepak for your response. 
1. Yes, We are using same key that I received from facebook.
2. Where did you see www.nichevideo.com. I see it is trying to return 
http://nichevideomedia.com/socialauth/validate.sauth?code=AQAyUNW6XPYrCh-0SuciYR
cUM82xCVqrG1HS0rxJDjM4caKsEQBvC3JKkliJbu6VsK7YlseBmtgBm9ymFm2DSY1XXgoI2Y47A-feUF
eSKLY414RY9gJWLcSeEIfQ2mPRN_R353U4tdG-FzgQsItSBUTwSMgOS-owdB60Zg0p4x6jl6Z3_9qQPv
zwFb_5eiYCP0FlXemUePiXMmpoMF8SvEOqwc9H6goeSKnbl4B30b3h2o9fWwDfw8XuSIjBDx4uDxBUkE
m8pwKm_xlmVI6-gcnoujHjsyK24aEVzA7R-HUU4UGna6H1O4H6yFT1ViDnrg4#_=_

Same issue is having with other provider as well.. like yahoo, google
Thanks again

Original comment by Ba...@nichevid.com on 12 Jun 2013 at 6:22

GoogleCodeExporter commented 8 years ago
Gotcha! It looks like your server isn't supporting custom HttpHandlers and 
HttpModules (a similar issue shared by many GoDaddy users). .sauth is a special 
extension which is handled in custom httpHandler. This httpHandler handles the 
redirects from provider when a user has logged in.

Original comment by deepak.a...@3pillarglobal.com on 12 Jun 2013 at 9:15

GoogleCodeExporter commented 8 years ago
Thank you for your response. Can you please suggest on this. How we go further. 

Original comment by Ba...@nichevid.com on 13 Jun 2013 at 5:10

GoogleCodeExporter commented 8 years ago
The best is to create an ASP.NET project with a very simple httpHandler which 
say just display "Hello" for a specific extension. If that works, 
SocialAuth.NET will work too. If it doesn't, we don't have an alternative at 
the moment. However, we're in progress of an altogether different approach to 
use SocialAuth.NET which will provide much granular control. But you'd need to 
wait for sometime (1 or 2 months). The other option I can suggest is to add an 
intermediary page and instead of socialauth.sauth, redirect to this 
intermediary page where you copy the code that's execute in httpHandler. So 
your new page will actually imitate httpHandler.

Deepak

Original comment by deepak.a...@3pillarglobal.com on 13 Jun 2013 at 5:15

GoogleCodeExporter commented 8 years ago
Thanks deepak. Let me try this.

Original comment by Ba...@nichevid.com on 13 Jun 2013 at 5:33

GoogleCodeExporter commented 8 years ago
Was your problem resolved with last suggestion? If not, please add details. 

Deepak

Original comment by deepak.a...@3pillarglobal.com on 21 Oct 2013 at 10:43

GoogleCodeExporter commented 8 years ago
Closing on account of no-reply. As mentioned earlier, you'd need to have a 
provider that supports httpHandler and httpModules as of now.

However, Feel free to re-open it if you face issue even after a provider change

Original comment by deepak.a...@3pillarglobal.com on 1 Dec 2013 at 3:00