[dba-Tech] Using callback with IIS Express
Gustav Brock
gustav at cactus.dk
Fri Aug 14 06:42:45 CDT 2015
Hi Martin
Yes I did, and I did make that correction. Even though, this should not influence the connection to Facebook which also fails with the local callback.
The issue may not at all be related to the actual project but rather to my setup - question is what to look for.
/gustav
-----Oprindelig meddelelse-----
Fra: dba-Tech [mailto:dba-tech-bounces at databaseadvisors.com] På vegne af Martin Reid
Sendt: 14. august 2015 13:31
Til: Discussion of Hardware and Software issues <dba-tech at databaseadvisors.com>; Development in Visual Studio <dba-vs at databaseadvisors.com>
Emne: Re: [dba-Tech] Using callback with IIS Express
Gustav
Did you see this paragraph?
You need to go Developer Apps page. Two big gotchas:
1.This is probably only well known OAuth provider that doesn't support localhost in Callback URL. You need to use 127.0.0.1 instead. This also means that if you use IIS Express for debugging, you'll need to configure it to listen on all addresses. To do that, open your IIS Express config file (%MyDocuments%/IIS Express/config/applicationhost.config), find entry related to example website I provided you with (search for port 28950) and then add extra line below existing localhost entry:
Hide Copy Code
<binding protocol="http" bindingInformation="*:28950:localhost" /> <binding protocol="http" bindingInformation="*:28950:*" />
-----Original Message-----
From: dba-Tech [mailto:dba-tech-bounces at databaseadvisors.com] On Behalf Of Gustav Brock
Sent: 14 August 2015 12:10
To: Discussion of Hardware and Software issues; Development in Visual Studio
Subject: [dba-Tech] Using callback with IIS Express
Hi all
I have found a library that allows for easy creation of an Oauth2 connection and login:
http://www.codeproject.com/Articles/1006013/OAuth-Social-Logins-Facebook-Google-Twitter-PayPal
As you can read from the notes, I have published the project to a remote hosted server and can reach the success page for Facebook and Twitter.
But whatever I try, I cannot create a successful callback for neither of these to IIS Express on my localhost port 28950.
I guess it's only "a little thing" I miss to set up on my workstation but what? Any ideas?
I should add, that I can run the project locally with the callback pointing to the remote server and it still works. The browser loads the remote success page.
/gustav
More information about the dba-Tech
mailing list