{"id":26164721,"url":"https://github.com/optum/pontifex-aad","last_synced_at":"2026-04-20T17:33:37.084Z","repository":{"id":94608900,"uuid":"528033882","full_name":"Optum/pontifex-aad","owner":"Optum","description":"Azure Active Directory helper module for Pontifex","archived":false,"fork":false,"pushed_at":"2023-01-03T18:43:01.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-11T15:51:10.530Z","etag":null,"topics":["azure-active-directory","pontifex"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Optum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-23T14:42:16.000Z","updated_at":"2022-09-09T14:26:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"95c72a30-8d32-49b9-a795-dab1889e2434","html_url":"https://github.com/Optum/pontifex-aad","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Optum/pontifex-aad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Fpontifex-aad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Fpontifex-aad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Fpontifex-aad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Fpontifex-aad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Optum","download_url":"https://codeload.github.com/Optum/pontifex-aad/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Fpontifex-aad/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32057682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["azure-active-directory","pontifex"],"created_at":"2025-03-11T15:39:57.140Z","updated_at":"2026-04-20T17:33:37.079Z","avatar_url":"https://github.com/Optum.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"top\"\u003e\u003c/div\u003e\n\n\u003c!-- NOTES --\u003e\n\u003c!--\n*** Individual sections below can be removed if not needed\n--\u003e\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** We are using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n\n\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n\n\u003ch3 align=\"center\"\u003epontifex-aad\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n   Making working with Azure Active Directory + Oauth2 Easy\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#maintainers\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\nHelper package for managing App Registrations, App Roles, and permission granting within Azure Active Directory.\n\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n### Built With\n\n* [Typescript](https://www.typescriptlang.org/)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\n### Installation\n\n1. Clone the repo\n   ```sh\n   git clone https://github.com/Optum/pontifex-aad.git\n   ```\n2. Install NPM packages\n   ```sh\n   npm install\n   ```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\n\n### Creating an App Registration and associated Service Principal\n```typescript\nconst application = await pontifex.application.create({\n    \"displayName\": `${environment}-${request.applicationName}`,\n    \"api\": {\n        \"requestedAccessTokenVersion\": 2 // tell AAD to use v2 OAuth2 tokens\n    }\n})\n\ncontext.log(`application created. objectId: ${application.id}, appId: ${application.appId}`)\n\ncontext.log(`creating service principal for appId ${application.appId}`)\nawait pontifex.servicePrincipal.create(application.appId)\n```\n\n### Granting Access to an App Role\n\n```typescript\nconst roleAssignmentId = await pontifex.servicePrincipal.grantPermission(clientServicePrincipal.id,\n    resourceServicePrincipal.id, appRole.id)\n```\n\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the Apache 2.0 License. See `LICENSE.txt` for more information.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- MAINTAINERS --\u003e\n## Maintainers\n\n- Alexander Aavang\n  - GitHub Enterprise: [aaavang](https://github.com/aaavang)\n  - Email: alexander.aavang@optum.com, alex.aavang@gmail.com\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/Optum/pontifex-aad.svg?style=for-the-badge\n[contributors-url]: https://github.com/Optum/pontifex-aad/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/Optum/pontifex-aad.svg?style=for-the-badge\n[forks-url]: https://github.com/Optum/pontifex-aad/network/members\n[stars-shield]: https://img.shields.io/github/stars/Optum/pontifex-aad.svg?style=for-the-badge\n[stars-url]: https://github.com/Optum/pontifex-aad/stargazers\n[issues-shield]: https://img.shields.io/github/issues/Optum/pontifex-aad.svg?style=for-the-badge\n[issues-url]: https://github.com/Optum/pontifex-aad/issues\n[license-shield]: https://img.shields.io/github/license/Optum/pontifex-aad.svg?style=for-the-badge\n[license-url]: https://github.com/Optum/pontifex-aad/blob/master/LICENSE.txt\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Fpontifex-aad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptum%2Fpontifex-aad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Fpontifex-aad/lists"}