Universal app built for Win 8.1 - OAuth 2.0 Azure support

Madhu 96 Reputation points


I have a Universal app built for Windows 8.1 using Visual studio 2015. (This was done before UWP, there are 2 separate projects for phones and others. But we are not actually using the phone version anymore)

alt text

The client wants to add OAuth 2.0 authentication with Windows Azure DS to this app.

I am bit worried, since this app is some what old, will there be any issues doing that? Will it be supported?

If supported will the code be the same as for doing this for a UWP app done using VS 2017 or 2019 or will there be changes.

Because we need to do the same for another UWP app built with VS2017 as well. So do you think we will be able to use the same code in both apps or will there be differences due to version differences?

Any guidance on this is really appreciated.

Thank you.

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Richard Zhang-MSFT 6,936 Reputation points


    Welcome to our Microsoft Q&A platform!

    Azure OAuth 2.0 authentication is essentially a Http-based network request.

    Whether it is a UWP application (Win 10) or a Metro application (Win 8), OAuth authentication can be completed by initiating a network request.

    Azure provides the Microsoft.IdentityModel.Clients.ActiveDirectory nuget package, which helps you complete OAuth authentication more easily.

    If you can't use the nuget package, you can also initiate a network request in accordance with the OAuth process. This is generic.

    Here are some code examples provided by Azure that can be used as a reference.


    1 person found this answer helpful.