-->![Sborki Sborki](http://microsoftportal.net/uploads/posts/2015-04/1430137701_2015042216063626872.jpg)
This article explains how to connect your Universal Windows Platform (UWP) app to an online identity provider that uses authentication protocols like OpenID or OAuth, such as Facebook, Twitter, Flickr, Instagram, and so on. The AuthenticateAsync method sends a request to the online identity provider and gets back an access token that describes the provider resources to which the app has access.
Note
To install specific RSAT tools on Windows 10 October 2018 Update or later Starting with Windows 10 October 2018 Update, RSAT is included as a set of 'Features on Demand' right from Windows 10. Do not download an RSAT package from this page.
For a complete, working code sample, clone the WebAuthenticationBroker repo on GitHub.
Register your app with your online provider
You must register your app with the online identity provider to which you want to connect. You can find out how to register your app from the identity provider. After registering, the online provider typically gives you an Id or secret key for your app.
Build the authentication request URI
The request URI consists of the address where you send the authentication request to your online provider appended with other required information, such as an app ID or secret, a redirect URI where the user is sent after completing authentication, and the expected response type. You can find out from your provider what parameters are required.
The request URI is sent as the requestUri parameter of the AuthenticateAsync method. It must be a secure address (it must start with
https://
)The following example shows how to build the request URI.
Connect to the online provider
You call the AuthenticateAsync method to connect to the online identity provider and get an access token. The method takes the URI constructed in the previous step as the requestUri parameter, and a URI to which you want the user to be redirected as the callbackUri parameter.
Warning
In addition to AuthenticateAsync, the Windows.Security.Authentication.Web namespace contains an AuthenticateAndContinue method. Do not call this method. It is designed for apps targeting Windows Phone 8.1 only and is deprecated starting with Windows 10.
Connecting with single sign-on (SSO).
By default, Web authentication broker does not allow cookies to persist. Because of this, even if the app user indicates that they want to stay logged in (for example, by selecting a check box in the provider's login dialog), they will have to login each time they want to access resources for that provider. To login with SSO, your online identity provider must have enabled SSO for Web authentication broker, and your app must call the overload of AuthenticateAsync that does not take a callbackUri parameter. This will allow persisted cookies to be stored by the web authentication broker, so that future authentication calls by the same app will not require repeated sign-in by the user (the user is effectively 'logged in' until the access token expires).
To support SSO, the online provider must allow you to register a redirect URI in the form
ms-app://<appSID>
, where <appSID>
is the SID for your app. You can find your app's SID from the app developer page for your app, or by calling the GetCurrentApplicationCallbackUri method.Debugging
There are several ways to troubleshoot the web authentication broker APIs, including reviewing operational logs and reviewing web requests and responses using Fiddler.
Operational logs
Often you can determine what is not working by using the operational logs. There is a dedicated event log channel Microsoft-Windows-WebAuthOperational that allows website developers to understand how their web pages are being processed by the Web authentication broker. To enable it, launch eventvwr.exe and enable Operational log under the Application and ServicesMicrosoftWindowsWebAuth. Also, the Web authentication broker appends a unique string to the user agent string to identify itself on the web server. The string is 'MSAuthHost/1.0'. Note that the version number may change in the future, so you should not to depend on that version number in your code. An example of the full user agent string, followed by full debugging steps, is as follows.
User-Agent: Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Win64; x64; Trident/6.0; MSAuthHost/1.0)
- Enable operational logs.
- Run Contoso social application.
- The generated logs entries can be used to understand the behavior of Web authentication broker in greater detail. In this case, these can include:
- Navigation Start: Logs when the AuthHost is started and contains information about the start and termination URLs.
- Navigation Complete: Logs the completion of loading a web page.
- Meta Tag: Logs when a meta-tag is encountered including the details.
- Navigation Terminate: Navigation terminated by the user.
- Navigation Error: AuthHost encounters a navigation error at a URL including HttpStatusCode.
- Navigation End: Terminating URL is encountered.
Fiddler
The Fiddler web debugger can be used with apps.
- Since the AuthHost runs in its own app container, to give it the private network capability you must set a registry key: Windows Registry Editor Version 5.00HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionImage File Execution Optionsauthhost.exeEnablePrivateNetwork = 00000001If you do not have this registry key, you can create it in a Command Prompt with administrator privileges.
- Add a rule for the AuthHost as this is what is generating the outbound traffic.
- Add a firewall rule for incoming traffic to Fiddler.
Vistalizator allows you to change display language in Windows editions other than (officially supported) Ultimate, like Starter, Home Basic, Home Premium and Business/Professional.
Features
- Vistalizator Free & Safe Download!
- Vistalizator Latest Version!
- Works with All Windows versions
- Users choice!
Vistalizator is a product developed by Froggie. This site is not directly affiliated with Froggie. All trademarks, registered trademarks, product names and company names or logos mentioned herein are the property of their respective owners.
All informations about programs or games on this website have been found in open sources on the Internet. All programs and games not hosted on our site. When visitor click 'Download now' button files will downloading directly from official sources(owners sites). QP Download is strongly against the piracy, we do not support any manifestation of piracy. If you think that app/game you own the copyrights is listed on our website and you want to remove it, please contact us. We are DMCA-compliant and gladly to work with you. Please find the DMCA / Removal Request below.
DMCA / REMOVAL REQUEST
Please include the following information in your claim request:
- Identification of the copyrighted work that you claim has been infringed;
- An exact description of where the material about which you complain is located within the QPDownload.com;
- Your full address, phone number, and email address;
- A statement by you that you have a good-faith belief that the disputed use is not authorized by the copyright owner, its agent, or the law;
- A statement by you, made under penalty of perjury, that the above information in your notice is accurate and that you are the owner of the copyright interest involved or are authorized to act on behalf of that owner;
- Your electronic or physical signature.
You may send an email to support [at] qpdownload.com for all DMCA / Removal Requests.
You can find a lot of useful information about the different software on our QP Download Blog page.
Latest Posts:
How do I uninstall Vistalizator in Windows Vista / Windows 7 / Windows 8?
- Click 'Start'
- Click on 'Control Panel'
- Under Programs click the Uninstall a Program link.
- Select 'Vistalizator' and right click, then select Uninstall/Change.
- Click 'Yes' to confirm the uninstallation.
How do I uninstall Vistalizator in Windows XP?
- Click 'Start'
- Click on 'Control Panel'
- Click the Add or Remove Programs icon.
- Click on 'Vistalizator', then click 'Remove/Uninstall.'
- Click 'Yes' to confirm the uninstallation.
How do I uninstall Vistalizator in Windows 95, 98, Me, NT, 2000?
- Click 'Start'
- Click on 'Control Panel'
- Double-click the 'Add/Remove Programs' icon.
- Select 'Vistalizator' and right click, then select Uninstall/Change.
- Click 'Yes' to confirm the uninstallation.
![Sborki Sborki](http://microsoftportal.net/uploads/posts/2015-04/1430137701_2015042216063626872.jpg)
- How much does it cost to download Vistalizator?
- How do I access the free Vistalizator download for PC?
- Will this Vistalizator download work on Windows?
Nothing! Download Vistalizator from official sites for free using QPDownload.com. Additional information about license you can found on owners sites.
It's easy! Just click the free Vistalizator download button at the top left of the page. Clicking this link will start the installer to download Vistalizator free for Windows.
Yes! The free Vistalizator download for PC works on most current Windows operating systems.