为Azure调用设置/获取非动态令牌 [英] Setting/Getting a non-dynamic Token for API calls to Azure

查看:60
本文介绍了为Azure调用设置/获取非动态令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试整合第三方 不支持动态令牌的Web应用程序。我看到有一种设置令牌生命的方法,但在这个过程中需要一些帮助。我需要为用户提供/取消配置API。



谢谢,

  Dan

解决方案

您可以使用REST API



用户 - 创建或更新



PUT
https://management.azure.com/subscriptions/ {subscriptionId} / resourceGroups / {resourceGroupName} /providers/Microsoft.ApiManagement/service/ {服务名} /用户/ {用户id}?API-版本= 2019 -01-01


用户 - 删除



DELETE
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/ {resourceGroupName} /providers/Microsoft.ApiManagement/service/ {serviceName} / users / {userId}?api-version = 2019-01-01




I am attempting to integrate a 3rd-party  web application that does not support dynamic tokens. I saw there is a way to set token life, but need some help in the process. I will need to provision/de-provision users with the API.

Thanks,
  Dan

解决方案

You can use REST API for these.

User - Create Or Update

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}?api-version=2019-01-01

User - Delete

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/users/{userId}?api-version=2019-01-01



这篇关于为Azure调用设置/获取非动态令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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