{"id":21638655,"url":"https://github.com/yukari316/ms-graph-auth-helper","last_synced_at":"2026-05-09T16:07:33.438Z","repository":{"id":144142312,"uuid":"440969762","full_name":"Yukari316/ms-graph-auth-helper","owner":"Yukari316","description":"一个可以快速获取Graph令牌的小工具，可以用于OneDriver的API令牌获取","archived":false,"fork":false,"pushed_at":"2021-12-23T05:54:57.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T23:47:20.844Z","etag":null,"topics":["graph","graphapi","onedriver"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Yukari316.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-22T19:56:17.000Z","updated_at":"2021-12-25T08:28:56.000Z","dependencies_parsed_at":"2023-05-03T02:48:36.037Z","dependency_job_id":null,"html_url":"https://github.com/Yukari316/ms-graph-auth-helper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Yukari316/ms-graph-auth-helper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yukari316%2Fms-graph-auth-helper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yukari316%2Fms-graph-auth-helper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yukari316%2Fms-graph-auth-helper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yukari316%2Fms-graph-auth-helper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Yukari316","download_url":"https://codeload.github.com/Yukari316/ms-graph-auth-helper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Yukari316%2Fms-graph-auth-helper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32825663,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"online","status_checked_at":"2026-05-09T02:00:06.633Z","response_time":123,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["graph","graphapi","onedriver"],"created_at":"2024-11-25T04:10:45.313Z","updated_at":"2026-05-09T16:07:33.433Z","avatar_url":"https://github.com/Yukari316.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ms-graph-auth-helper\n\n一个可以快速帮助获取Microsoft Graph API令牌的小工具\n\n并且可以自定义获取权限的类型\n\n~~在弄网盘API的时候觉得太麻烦了就搞了个这个~~\n\n![run](https://user-images.githubusercontent.com/7535224/147194336-5c75b46f-bd1d-4b71-8587-a09a0cdf1005.png)\n\n![res](https://user-images.githubusercontent.com/7535224/147194576-7222b3f5-813d-4da1-86ed-69b60f09eb3c.png)\n\n## 如何使用\n\n**以获取OneDriver相关的API权限为例**\n\n在获取令牌时，请按照以下步骤操作\n\n#### 注册新应用\n\n- 打开[Azure应用管理面板](https://portal.azure.com/#blade/Microsoft_AAD_RegisteredApps/ApplicationsListBlade)注册新的应用\n\n- **受支持的帐户类型** 选项选择 **任何组织目录(任何 Azure AD 目录 - 多租户)中的帐户和个人 Microsoft 帐户(例如，Skype、Xbox)**\n\n- 重定向URL（可选）中选择 **Web** 类型并将URL值设置为 **`http://localhost:11451/auth`**\n\n#### 权限\n\n- 切换至 **API权限** 选项卡点击 **添加权限**\n\n- 选择 **Microsoft Graph** 分类\n\n- 使用搜索功能找到并勾选以下权限：\n  \n  - Files.Read\n  \n  - Files.Read.All\n  \n  - Files.ReadWrite\n  \n  - Files.ReadWrite.All\n  \n  - offline_access\n\n- 点击 **添加权限** 完成授权\n\n#### 应用程序(客户端) ID [Client Id]\n\n- 切换至 **概述** 选项卡复制**应用程序(客户端) ID** 并**自行保管**\n\n#### 机密值[Client Secret]\n\n- 切换至 **证书和密码** 选项卡\n\n- 点击 **新建客户端密码** 并创建一个新的密钥\n\n- 创建完成后复制密钥的值并**自行保管**\n\n#### 启动工具按照提示完成令牌的获取\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukari316%2Fms-graph-auth-helper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyukari316%2Fms-graph-auth-helper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyukari316%2Fms-graph-auth-helper/lists"}