question

Madhu-8808 avatar image
0 Votes"
Madhu-8808 asked ·

Universal app built for Win 8.1 - OAuth 2.0 Azure support

Hi,

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.
https://docs.microsoft.com/en-us/azure/active-directory/develop/v1-protocols-oauth-code

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.
Madhu

windows-uwp
procapp1.png (7.4 KiB)
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichardZhang-MSFT avatar image
1 Vote"
RichardZhang-MSFT answered ·

Hello,​

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.

Thanks!

· 5 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @RichardZhangWicresoftNorthAmericaL-8157 . I tried to use the latest nuget package 5.2.4 and it is not supported for Wind 8.1. I was able to install 4.5.0 version. Will that be an issue to use an older package like that?



0 Votes 0 ·

Hi, You can test according to your situation. OAuth is a standard authorization process. If you can get Token normally, there will be no problem.

1 Vote 1 ·

@RichardZhangWicresoftNorthAmericaL-8157 I was following this article https://docs.microsoft.com/en-us/azure/active-directory/develop/tutorial-v2-windows-uwp and there it is using Microsoft.Identity.Client package. Is it different to the Microsoft.IdentityModel.Clients.ActiveDirectory you have suggested? Thanks

0 Votes 0 ·
Show more comments