How To Configure Asp.net Application With Microsoft Oauth Account
The post is regarding how to allow as well as use the OpenID or OAuth support
, which was added within ASP.NET Development through Visual Studio 2012 or outsource ASP.NET Development. You will have all the details and instructions to configure your application for using Microsoft accounts for the authentication. Here the focus is on configuring application for the ASP.NET Development environment through VS and IIS Express.
* Creating new ASP.NET Development of MVC or WebForms or the WebPages application
* Building and running a website
* Using the test domain
You have to use the domain except localhost to outsource ASP.NET Development as Microsoft account won't forward back to the local host.
Some people have kindly reserved the localtest.me to local testing for the domains therefore you do not need to disarray with the hosts files.
You may also utilize Foo.localtest.me like a testing domain. (You need to ensure that the Foo is exclusive. It is recommended to prefix it through something exclusive like Foo"MyName".localtest.me.
* Ping Foo.localtest.me has to be relapsed back to the local machine
* Edit firewall regulations for the port 80 for receiving external requests
* Pursue the guidelines the same as provided
* Configure Microsoft live entrance
* Do Login using the live credentials
* Enter the Application name with clicking on the "I Accept" (Read terms of usage and privacy in case it worries you)
* In Live Connect Developer Center whereas APP was formed in the step 7, then click on the Application Settings with page link -> API settings
* In redirectDomain, go into above formed domain name. For instance: Foo(dot)localtest(dot)me
* Press Save button and changes need to be saved
* Configure keys in the application
For the Web Forms or MVC applications
Edit AuthConfig file within App_Start folder with un-commenting code for Microsoft OAuth supplier. Then copy client ID as well as client secrets in AuthConfig files with uncommented section for the Microsoft login.
For the WebPages applications
Edit _AppStart.cshtml file with un-commenting code for Microsoft OAuth supplier. Then copy client ID with client secrets for this file within uncommented sections of the Microsoft login.
Then map test domain of your application, at this time we have to add the mapping for domain name being redirected to the application made in the step 1
For the IIS Express
* Open the applicationHost.config with %Documents%IISExpressconfig
* Position binding for web applications in a file as that will be distinct in "site" tag. For instance
* Add any new binding to the port 80 with domain name for the web application underneath opening "bindings" Tag
* Restart the IIS Express, furthermore re-launch the site.
Test above settings done by opening within browser Foo.localtest.me. That should open web application formed.
* IIS (7.0) up
* Host the application in the IIS
* Open the IIS Manager and locate the web application underneath Sites list then select the "Bindings" from action menu from the right. Insert binding for the selected hostname (For instance Foo.localtest.me).
* Run website for seeing it in the action
* Ensure that you have VS running as admin for that to work
* Then launch application hosted in the IIS or IIS Express
* Search test domain named Foo.localtest.me
* Navigate towards Login page by doing login through Microsoft Live credentials. The Login needs to be successful
by: D N Talaviya
Characteristics Of Selecting Enterprise Mobile Application Management Platform Os Commerce-most Reliable Open Source Shopping Cart Application Know The Latest Android Application Development Company Mobile Application Development: Explore The Technological Era Top 7 Reasons To Choose Android For Application Development Solutions The Best Way Of Making Use Of Restaurant Application Uk Mobile Applications- The Right Footage In The Mobile World Add Customized Apps In Your Smartphone With Android Application Development The Best Tips To Develop A Winning Mobile Application. The Custom Mobile Application Development Development Of Android Mobile Application Mobile Application Development Training: Lets Begin With Android Smart Phone Application Development Companies Awaiting Bb 10: Will Bb Make It?