{"id":21145359,"url":"https://github.com/jsa2/aad_device_code","last_synced_at":"2025-03-14T13:42:35.353Z","repository":{"id":103263595,"uuid":"484033186","full_name":"jsa2/aad_device_code","owner":"jsa2","description":"simple cli client for getting tokens with device code flow","archived":false,"fork":false,"pushed_at":"2022-05-16T04:26:14.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T07:27:22.120Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jsa2.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":"2022-04-21T11:58:54.000Z","updated_at":"2022-04-26T14:13:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"129bcede-99ee-4a66-98c5-10ee65393210","html_url":"https://github.com/jsa2/aad_device_code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsa2%2Faad_device_code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsa2%2Faad_device_code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsa2%2Faad_device_code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsa2%2Faad_device_code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsa2","download_url":"https://codeload.github.com/jsa2/aad_device_code/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243589255,"owners_count":20315467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-20T08:39:43.278Z","updated_at":"2025-03-14T13:42:35.329Z","avatar_url":"https://github.com/jsa2.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Cloud Shell Client for device code flow\n\nVery simple implementation of Azure AD Device Code Flow using existing high privileged application (Azure CLI) \n-   You can define your own application too \n\n\n## Usage\n\n1. Open Azure Cloud Shell (BASH) and paste following command to it:\n\n`` curl -o- \"https://raw.githubusercontent.com/jsa2/aad_device_code/main/init.sh\" |  bash`` \n\n2. Navigate to install directory ``cd aad_device_code/``\n3. Type ``npm install `` \n4. Run the tool (It will wait for 15 iterations for login)\n`` node getCode.js --client=04b07795-8ddb-461a-bbee-02f9e1bf7b46 --resource=https://graph.microsoft.com `` \n\n- If you use your own clientID, and it is not an multitenant app, supply tenantId param too\n\n    `` node getCode.js --tid=48f55450-183a-45d6-a9ce-68f3cbc68947 --client=b5505019-43a5-4eda-bc5e-b0157a1227b9 --resource=https://graph.microsoft.com `` \n\n\u003cbr\u003e\n\n![image](https://user-images.githubusercontent.com/58001986/164604283-57cb6bb8-6a57-4890-b964-5170777cb070.png)\n\n## Backround\nIf you want to read about how this might be used for malicious purposes, read the excellent write-up by [DrAzureAD](https://twitter.com/DrAzureAD) \n@ https://o365blog.com/post/phishing/","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsa2%2Faad_device_code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsa2%2Faad_device_code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsa2%2Faad_device_code/lists"}