WebAccountManager使用哪个OAuth协议版本? [英] Which OAuth protocol version does WebAccountManager use?

查看:53
本文介绍了WebAccountManager使用哪个OAuth协议版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试阅读有关公开OAuth权限的文档,但该文档的开头是说:

I'm trying to read a document about exposing OAuth permissions but it starts out by saying:

在开始之前,您已经[sic]清楚地了解了您的许可应使用哪个OAuth协议版本.

Before you get started, you sould [sic] have a firm understanding of which version(s) of the OAuth protocol your permission should work with.

...并提供选项

  1. MSA v1 OAuth 2.0协议
  2. AAD v1 OAuth 2.0协议
  3. 融合的v2.0 OAuth 2.0协议

但是,文档给出的唯一标准是根据客户端向其发送请求的URL来确定正在使用的标准(例如

However, the only criteria the documentation gives for figuring out which one you are using is based on the URL to which the client sends requests (e.g. https://login.microsoftonline.com/tenant/oauth2/authorize).

我不知道我们的应用程序使用哪个URL进行身份验证,因此也不知道它使用什么版本.我们的UWP应用使用WebAuthenticationCoreManager类来处理身份验证.我们将" https://login.microsoft.com 指定为AccountProvider,将组织"指定为授权机构(到WebAuthenticationCoreManager.FindAccountProviderAsync方法).显然,我们没有在任何地方指定端点或协议版本.

I don't know what URL our application uses for auth, and thus don't know what version it uses. Our UWP app uses the WebAuthenticationCoreManager class to handle authentication. We specify "https://login.microsoft.com" as the AccountProvider and "organizations" as the authority (to the WebAuthenticationCoreManager.FindAccountProviderAsync method). We don't obviously specify an endpoint or protocol version anywhere.

我们正在使用什么版本?

What version are we using?

推荐答案

您将要在 这是一个很好的代码示例,它集成了将Web帐户管理器集成到Windows Universal应用中.

Here's an excellent code sample that integrates the Web Account Manager into a Windows Universal app.

这篇关于WebAccountManager使用哪个OAuth协议版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆