[dba-Tech] Using callback with IIS Express

Martin Reid mwp.reid at qub.ac.uk
Fri Aug 14 06:31:19 CDT 2015


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
_______________________________________________
dba-Tech mailing list
dba-Tech at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/dba-tech
Website: http://www.databaseadvisors.com



More information about the dba-Tech mailing list