- 打卡等级:热心大叔
- 打卡总天数:348
- 打卡月天数:2
- 打卡总奖励:127963
- 最近打卡:2024-09-12 09:49:55
超级版主
- 积分
- 111717
|
本帖最后由 荣誉会员 于 2021-5-17 22:19 编辑
#Graph Explorer-在线测试API工具
工具地址:- https://developer.microsoft.com/zh-cn/graph/graph-explorer
复制代码
Micro Graph API文档:- https://docs.microsoft.com/zh-CN/graph/api/overview?view=graph-rest-1.0
复制代码
使用条件:有Graph Explorer调用API对应所需权限的账号,方便起见直接使用全局管理员
#步骤
1) AAD中复制应用的对象ID(Object ID)
2) Graph Explorer 中调用API添加密码
1- 请求类型改为POST,请求地址
- https://graph.microsoft.com/v1.0/applications/{id}/addPassword
复制代码
将 ID 修改为你应用程序中的【对象 ID】 2- 添加请求正文,过期时间(utc格式)必选,密钥名称、开始时间可选
- <div class="" style="box-sizing: inherit; display: table-row; border: 0px solid rgb(255, 255, 255); list-style: none; font-size: 12px; line-height: 1.35em; min-height: 14px; border-radius: 8px 8px 0px 0px; background-color: rgb(255, 252, 211); font-family: "Source Code Pro", "Liberation Mono", "Courier New", Courier, monospace; white-space: pre-wrap;"><div style="box-sizing: inherit; display: table-cell; padding-left: 10px; white-space: pre !important;"><span class="enlighter-k4" style="box-sizing: inherit; line-height: inherit; font-size: 1em; font-family: inherit; color: rgb(74, 145, 65); font-weight: 700;"># displayName 为密钥名称,可随意设置
- </span><span class="enlighter-text" style="box-sizing: inherit; line-height: inherit; font-size: 1em; font-family: inherit; color: rgb(0, 0, 0);"></span></div></div><div class="" style="box-sizing: inherit; display: table-row; border: 0px solid rgb(255, 255, 255); list-style: none; font-size: 12px; line-height: 1.35em; min-height: 14px; color: rgb(170, 170, 170); font-family: "Source Code Pro", "Liberation Mono", "Courier New", Courier, monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><div style="box-sizing: inherit; display: table-cell; padding-left: 10px; white-space: pre !important;"><span class="enlighter-text" style="box-sizing: inherit; line-height: inherit; font-size: 1em; font-family: inherit; color: rgb(0, 0, 0);"></span></div></div><div class="" style="box-sizing: inherit; display: table-row; border: 0px solid rgb(255, 255, 255); list-style: none; font-size: 12px; line-height: 1.35em; min-height: 14px; color: rgb(170, 170, 170); font-family: "Source Code Pro", "Liberation Mono", "Courier New", Courier, monospace; white-space: pre-wrap; background-color: rgb(255, 255, 255);"><div style="box-sizing: inherit; display: table-cell; padding-left: 10px; white-space: pre !important;"><span class="enlighter-text" style="box-sizing: inherit; line-height: inherit; font-size: 1em; font-family: inherit; color: rgb(0, 0, 0);"></span><span class="enlighter-k4" style="box-sizing: inherit; line-height: inherit; font-size: 1em; font-family: inherit; color: rgb(74, 145, 65); font-weight: 700;"># endDateTime 为密钥到期时间,可随意设置
- </span></div></div>
复制代码
3- 给Graph Explorer权限:修改权限(预览版)-同意许可
4- 运行查询复制保存响应中的密钥
3) AAD中验证密钥有效期,看不到刷新或重新登陆
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
x
|