{"name":"@deckyard/oauthext","description":"Vendor OAuth2 for the oauth module: Google and Microsoft presets, Google service accounts","versions":{"0.4.0":{"version":"0.4.0","kind":"git","url":"https://github.com/deckyard/deck-oauthext.git","ref":"0.4.0","commit":"d7275661b5f1ec6822487b33217261a0fdaf89cd","checksum":"","yanked":false,"license":"LGPL-3.0-only","requires":{},"engines":{"jennifer":"\u003e=0.27.0"},"capabilities":["net"],"keywords":["oauth","oauth2","google","microsoft","entra"],"description":"Vendor OAuth2 for the oauth module: Google and Microsoft presets, Google service accounts","publishedAt":"1795641420","repoId":1456182821,"repoOwnerId":346943577,"repoOwner":"deckyard"}},"readme":"# @deckyard/oauthext\n\n[![test](https://github.com/deckyard/deck-oauthext/actions/workflows/test.yml/badge.svg)](https://github.com/deckyard/deck-oauthext/actions/workflows/test.yml)\n[![Documentation](https://img.shields.io/badge/docs-github%20pages-blue)](https://deckyard.github.io/deck-oauthext/)\n[![release](https://img.shields.io/github/v/release/deckyard/deck-oauthext)](https://github.com/deckyard/deck-oauthext/releases/latest)\n\nVendor-specific OAuth2 for the bundled `oauth` module of\n[Jennifer](https://jennifer-lang.dev/): `Config` presets for Google™ and\nMicrosoft Entra™ ID, and Google service-account logins from a JSON key file\n(the RFC 7523 JWT bearer grant), which open Google Cloud™ and Workspace™ APIs to\na program with no user. The presets were `oauth.google` / `oauth.microsoft` in\nthe bundled module up to Jennifer 0.25.\n\nUp to 0.3.0 this deck was `@jennifer/oauthext`. To switch, change the `[decks]`\nentry to `\"@deckyard/oauthext\" = \"^0.4.0\"` and the imports to `\"@deckyard/oauthext/\"`.\n\n**[Documentation](https://deckyard.github.io/deck-oauthext/)**\n\n## Install\n\n```sh\njvc add @deckyard/oauthext\n```\n\nThis vendors the deck to `vendor/\u003cscope\u003e/oauthext/`. Without `jvc`, unpack the\n`src/` subtree of a release archive (`\u003cscope\u003e-oauthext-\u003cversion\u003e.tar.gz`) there.\n\n## Usage\n\n```jennifer\nuse fs;\n\nimport \"oauth.j\" as oauth;\nimport \"@deckyard/oauthext/\" as oauthext;\n\ndef tok as oauth.Token init oauthext.googleServiceAccount(\n    fs.readString(\"service-account.json\"),\n    \"https://www.googleapis.com/auth/cloud-platform\");\n\ndef cfg as oauth.Config init oauthext.microsoft(\"common\", $clientId, \"\",\n    \"https://outlook.office.com/IMAP.AccessAsUser.All offline_access\");\n```\n\n## Requirements\n\nJennifer 0.27.0 or newer, the default `jennifer` binary (the deck needs\n`net`; the stock `jennifer-tiny` has no network driver). RS256 signing for\nservice accounts is in the default binary.\n\n## Development\n\n```sh\ntools/check-all.sh                   # the full gate, as CI runs it\njennifer test src/oauthext_test.j      # the test overlay\ntools/check-docs.sh                  # docs against the code\ntools/pack.sh dist                   # build the release archive\n```\n\n## Licence\n\nLGPL-3.0-only, see [LICENSE](LICENSE). Copyright (C) 2026 mplx \u0026lt;mplx@jennifer-lang.dev\u0026gt;.\n\n`tools/check-headers.sh` checks every source file's SPDX header against\n`deck.toml`.\n\n## Trademarks\n\nGoogle™, Google Cloud™ and Google Workspace™ are trademarks of Google LLC.\nMicrosoft™ and Microsoft Entra™ are trademarks of Microsoft Corporation. Other\nproduct and company names may be trademarks of their respective owners. They\nare used only to identify the products this deck works with. This deck is an\nindependent project, not affiliated with, sponsored or endorsed by Google LLC\nor Microsoft Corporation.\n","movedFrom":["@jennifer/oauthext"]}