代码之家  ›  专栏  ›  技术社区  ›  Hari Priya Thangavel

在Azure api管理中启用操作级别的OAuth

  •  0
  • Hari Priya Thangavel  · 技术社区  · 7 年前

    关于Azure管理服务, 我想为API组中的选择性操作启用Oauth身份验证。

    2 回复  |  直到 7 年前
        1
  •  0
  •   Joey Cai    7 年前

    一旦配置了oauth2.0授权服务器并将API配置为使用该服务器,就可以通过转到开发人员门户并调用API来测试它。点击 在Azure API管理实例的顶部菜单中 概述 第页。

    点击 原料药

    选择 GET Resource 打开控制台 ,然后选择 授权码 从下拉列表中选择。

    enter image description here

    选择授权代码后,将显示一个弹出窗口,其中包含OAuth 2.0提供程序的登录表单。在本例中,登录表单由Azure Active Directory提供。 enter image description here

    欲知更多详情,请参阅 article .

        2
  •  0
  •   Hari Priya Thangavel    7 年前

    看来我们无法在操作级别启用oauth。

    假设我在api组中有3个名为MyAPI的操作。现在我只想为2个操作启用OAuth身份验证。这可能吗?

    Not currently. You can only associate auth server with an API and when you do so console will render auth UI for all operations in that API. Thanks @Vitaliy Kurokhtin