个人小站

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 28|回复: 0

[非必要资源] Microsoft Graph自定义应用密钥有效期之官方工具Graph Explorer

[复制链接]
  • 打卡等级:热心大叔
  • 打卡总天数:348
  • 打卡月天数:2
  • 打卡总奖励:127963
  • 最近打卡:2024-09-12 09:49:55

69

主题

14

回帖

11万

积分

超级版主

Rank: 8Rank: 8

积分
111715

优秀版主论坛元老

发表于 2021-5-7 11:47:26 | 显示全部楼层 |阅读模式
本帖最后由 荣誉会员 于 2021-5-17 22:19 编辑

#Graph Explorer-在线测试API工具
        工具地址:
  1. https://developer.microsoft.com/zh-cn/graph/graph-explorer
复制代码

        Micro Graph API文档:
  1. 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,请求地址

  1. https://graph.microsoft.com/v1.0/applications/{id}/addPassword
复制代码

                        将 ID 修改为你应用程序中的【对象 ID】                2- 添加请求正文,过期时间(utc格式)必选,密钥名称、开始时间可选
                     

  1. <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: &quot;Source Code Pro&quot;, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, 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 为密钥名称,可随意设置

  2. </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: &quot;Source Code Pro&quot;, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, 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: &quot;Source Code Pro&quot;, &quot;Liberation Mono&quot;, &quot;Courier New&quot;, 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 为密钥到期时间,可随意设置

  3. </span></div></div>
复制代码


               3- 给Graph Explorer权限:修改权限(预览版)-同意许可


                4- 运行查询复制保存响应中的密钥

        3) AAD中验证密钥有效期,看不到刷新或重新登陆

















本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|个人小站

GMT+8, 2024-9-17 03:52 , Processed in 0.025394 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表