{"id":22740460,"url":"https://github.com/un0tec/msauthify","last_synced_at":"2026-01-29T08:36:36.921Z","repository":{"id":266636284,"uuid":"898933055","full_name":"un0tec/msauthify","owner":"un0tec","description":"Automates AWS Oauth2 token fetching using password credentials grant flow. Supports multiple applications","archived":false,"fork":false,"pushed_at":"2024-12-10T09:04:16.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-27T19:50:38.876Z","etag":null,"topics":["microsoft","microsoft-azure","nodejs","oauth2","token"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/un0tec.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-12-05T10:06:19.000Z","updated_at":"2024-12-10T09:03:31.000Z","dependencies_parsed_at":"2024-12-05T10:15:18.442Z","dependency_job_id":"81878d27-2fb7-4008-9c14-c086df3932c7","html_url":"https://github.com/un0tec/msauthify","commit_stats":null,"previous_names":["un0tec/msauthify"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un0tec%2Fmsauthify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un0tec%2Fmsauthify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un0tec%2Fmsauthify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/un0tec%2Fmsauthify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/un0tec","download_url":"https://codeload.github.com/un0tec/msauthify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830389,"owners_count":21168272,"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":["microsoft","microsoft-azure","nodejs","oauth2","token"],"created_at":"2024-12-10T23:08:55.618Z","updated_at":"2026-01-29T08:36:31.900Z","avatar_url":"https://github.com/un0tec.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# msauthify\n\n[![License: MIT](https://img.shields.io/github/license/un0tec/msauthify?color=orange\u0026cache=none)](LICENSE)\n[![Release](https://img.shields.io/github/v/release/un0tec/msauthify?color=green\u0026label=Release)](https://github.com/un0tec/msauthify/releases/latest)\n\n1. :notebook_with_decorative_cover: [Description](#-description)\n2. :warning: [Before running](#-before-running)\n3. :hammer: [Installation](#-installation)\n4. :writing_hand: [Usage](#-usage)\n5. :bookmark_tabs: [Options](#-options)\n6. :monocle_face: [Examples](#-examples)\n7. :page_with_curl: [License](#-license)\n8. :heart: [Contribution](#-contributing)\n\n## # Description\n\n`msauthify` is a Node.js application for automating OAuth2 authentication with Microsoft services. It retrieves access tokens by leveraging the resource owner password credentials grant flow. This tool simplifies authentication for developers working with Microsoft APIs. Supports multiple applications.\n\n## # Before Running\n\nEnsure that your AWS SSO profiles are configured using `aws sso configure` and your profiles are configured in a `JSON` file named `msauthify.config`. The format of the configuration file should include the following details:\n\n- `custom_application_name`: Custom application name.\n  - `tenantId`: The Microsoft Azure tenant ID.\n  - `clientId`: The application (client) ID from Azure.\n  - `clientSecret`: The client secret for the application.\n  - `scope`: The API scopes requested.\n  - `username`: The username of the account for authentication.\n  - `password`: The password of the account for authentication.\n\nThe `msauthify.config` file should be placed as follows:\n\n- **Linux/macOS:** ~/msauthify.config\n- **Windows:** %userprofile%\\msauthify.config\n\n## # Installation\n\n`npm i -g msauthify`\n\n## # Usage\n\nBasic usage example:\n\n    msauthify [profiles]\n\nThe application will authenticate using the credentials provided in `msauthify.config` and output the access token.\n\n## # Options\n\nN/A\n\n## # Examples\n\nLinux: `~/msauthify.config`\\\nWindows: `%userprofile%/msauthify.config`\n\n```\n{\n    \"custom_application_name_1\": {    \n        \"tenantId\": \"app1_tenantId\",\n        \"clientId\": \"app1_clientId\",\n        \"clientSecret\": \"app1_clientSecret\",\n        \"scope\": \"app1_scope\",\n        \"username\": \"app1_user@example.com\",\n        \"password\": \"app1_password\"\n    },\n    \"custom_application_name_2\": {    \n        \"tenantId\": \"app2_tenantId\",\n        \"clientId\": \"app2_clientId\",\n        \"clientSecret\": \"app2_clientSecret\",\n        \"scope\": \"app2_scope\",\n        \"username\": \"app2_user@example.com\",\n        \"password\": \"app2_password\"\n    },\n    ...\n}\n```\n**Single Application Output:**\n```\neyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Inp...\n```\n**Multiple Application Output:**\n```\n----------\nToken app1\n----------\neyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6Inp...\n----------\nToken app2\n----------\nZWcyV09OcFRr5Wk94Zz09IiwiYXbiI6InVzZXJfY22NhY2N...\n```\n\n## # License\n\nDistributed under the MIT License. See `LICENSE` for more information.\n\n## # Contributing\n\nWe welcome contributions to improve the functionality of `msauthify`! Here's how you can contribute:\n\n1. Fork the project\n2. Create a new feature branch (`git checkout -b feature/YourFeature`)\n3. Make your changes and commit (`git commit -m 'Add feature'`)\n4. Push to your branch (`git push origin feature/YourFeature`)\n5. Open a pull request\n\nYour contributions will be greatly appreciated!\n\n:star: Feel free to contribute :star:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fun0tec%2Fmsauthify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fun0tec%2Fmsauthify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fun0tec%2Fmsauthify/lists"}