用Office子号看看全局里面哪些账号没翻车
2015 年 7 月 12 日
先到Azure后台新建一个App,回调地址跟我一样.
复制
也新建一个Secret,并复制.
然后修改app_id和app_secret.
运行脚本后有个连接,打开他然后授权.
跳转后的URL,粘贴到终端.
然后就能看到结果了.
脚本地址:https://gist.github.com/nickfox-taterli/cf8649b83466755ace4746b32f8e63cc
oauth_settings.yml 文件内容:
app_id: "e9069fd1-7517-488e-8e49-aba18d88f821" app_secret: "_hsOhE2kg140i3Wx13VKGVH_Z68-PCHNi~" redirect: "https://localhost:8000" scopes: "openid profile offline_access Directory.Read.All" authority: "https://login.microsoftonline.com/common" authorize_endpoint: "/oauth2/v2.0/authorize" token_endpoint: "/oauth2/v2.0/token"