UNPKG

@dataroadinc/setup-auth

Version:

CLI tool and programmatic API for automated OAuth setup across cloud platforms

485 lines (232 loc) 15.3 kB
# Changelog ## v0.0.5-2 (2025-07-29) ### Docs **Style:** - apply prettier formatting to documentation files ([544617f](https://github.com/dataroadinc/dr-ts-setup-auth/commit/544617fab8ca7f3446627f1c8848ad7b098ccb55)) - Fix line wrapping in README.md description - Fix line wrapping in open-source-release.md - Fix line wrapping in planning.md - Ensure consistent formatting across all documentation **Documentation:** - update package description across all files ([0460c21](https://github.com/dataroadinc/dr-ts-setup-auth/commit/0460c212ee141c8685215f8eb21e6823ca0d35fc)) - Update package.json description to new one-line summary - Update README.md with consistent description - Update CLI description in src/index.ts - Update documentation files with new description - Standardize on 'CLI tool and programmatic API for automated OAuth setup across cloud platforms' ## v0.0.5 (2025-07-29) ### Test **Style:** - apply prettier formatting to API test file ([67fc35c](https://github.com/dataroadinc/dr-ts-setup-auth/commit/67fc35c74eec3b5a2b16167b0bd6a97255e2920c)) - Fix line wrapping for long TypeScript casting expressions - Ensure consistent formatting with project standards ## v0.0.4 (2025-07-29) ### Docs **Documentation:** - apply prettier formatting to installation instructions ([ae2f74f](https://github.com/dataroadinc/dr-ts-setup-auth/commit/ae2f74ff0184175c04d7325de44d61ddc4615fd6)) - Fix line wrapping for long text in installation section - Ensure consistent formatting with project standards - clarify installation instructions for devDependency vs dependency ([2cb2320](https://github.com/dataroadinc/dr-ts-setup-auth/commit/2cb232029ac1ac4affd14725b8fd9f1c57ab7f02)) - Add clear recommendation for devDependency as default - Separate CLI usage (devDependency) from programmatic API usage (dependency) - Add specific use cases and examples for each installation method - Improve clarity on when to use each installation type ## v0.0.3 (2025-07-29) ### Docs **Documentation:** - add comprehensive badges to README ([543108c](https://github.com/dataroadinc/dr-ts-setup-auth/commit/543108c4df1a59d684012852d2b5dd483212812f)) - Add npm version and downloads badges - Add license, CI, and release workflow badges - Add Node.js, TypeScript, and pnpm version badges - Follow same pattern as versioning repo for consistency ## v0.0.2 (2025-07-24) ### Build **Features:** - add exports configuration for programmatic API ([179290c](https://github.com/dataroadinc/dr-ts-setup-auth/commit/179290cde862c805d2c10b1d4ccd8a6c06f3edb1)) - Add exports field to package.json - Enable direct import of API module - Support both main and API-specific imports ### Core **Style:** - apply prettier formatting to API module ([1cddc79](https://github.com/dataroadinc/dr-ts-setup-auth/commit/1cddc791b8793f55a56ae96963ae2d38ea57572f)) - Remove unused imports and variables - Add eslint-disable comments for placeholder methods - Clean up code formatting and structure **Features:** - export programmatic API from main index ([f10ebe4](https://github.com/dataroadinc/dr-ts-setup-auth/commit/f10ebe4bce943d9a0772707a65e51bc268d498d3)) - Add exports for API functions and types - Enable external programs to import setup-auth API - add programmatic API for callback URL registration ([6b78563](https://github.com/dataroadinc/dr-ts-setup-auth/commit/6b7856397271d18cf88c105a899425f9409d4811)) - Add SetupAuthAPI class with singleton pattern - Add registerCallbackUrls and updateCallbackUrls functions - Add CallbackUrlConfig and CallbackUrlRegistrationResult types - Implement GCP OAuth client registration and update logic - Add comprehensive error handling and validation - Include placeholder implementations for GitHub, Azure, and LinkedIn providers ### Project **Documentation:** - update README with programmatic API section ([9cecd39](https://github.com/dataroadinc/dr-ts-setup-auth/commit/9cecd39ee8654d31fa0f0789c8a2c38d475c13a6)) - Add programmatic API overview to README - Include basic usage examples - Add integration examples for Next.js and CI/CD - Link to comprehensive API documentation - add comprehensive programmatic API documentation ([e42078c](https://github.com/dataroadinc/dr-ts-setup-auth/commit/e42078c981a24e83bbd1d41e729950fa78f9a91d)) - Add complete API usage guide - Include integration examples for Next.js and CI/CD - Add error handling and best practices - Include migration guide from CLI to API **Features:** - add programmatic API usage examples ([ce6ad13](https://github.com/dataroadinc/dr-ts-setup-auth/commit/ce6ad13f73eab089b8b09bbf777a331e622559af)) - Add comprehensive example file demonstrating API usage - Include examples for different providers and scenarios - Add error handling and retry logic examples - Include environment-specific configuration examples ## v0.0.1 (2025-07-24) ### Build **Features:** - add exports configuration for programmatic API ([179290c](https://github.com/dataroadinc/dr-ts-setup-auth/commit/179290cde862c805d2c10b1d4ccd8a6c06f3edb1)) - Add exports field to package.json - Enable direct import of API module - Support both main and API-specific imports ### Ci **Features:** - align workflows with @dataroadinc/versioning ([76d7640](https://github.com/dataroadinc/dr-ts-setup-auth/commit/76d7640cc0090e94aef60683d3f0bbd77a0bb2e4)) - Add permissions: contents: write to CI workflow - Add npm registry configuration to release workflow - Add NPM publishing step to release workflow - Add proper version capture and rebuild steps - Add missing package.json scripts for versioning - Add prebuild, prepublishOnly, and prepare scripts - Add direct CLI command scripts for versioning tools ### Core **Style:** - apply prettier formatting to API module ([1cddc79](https://github.com/dataroadinc/dr-ts-setup-auth/commit/1cddc791b8793f55a56ae96963ae2d38ea57572f)) - Remove unused imports and variables - Add eslint-disable comments for placeholder methods - Clean up code formatting and structure **Features:** - export programmatic API from main index ([f10ebe4](https://github.com/dataroadinc/dr-ts-setup-auth/commit/f10ebe4bce943d9a0772707a65e51bc268d498d3)) - Add exports for API functions and types - Enable external programs to import setup-auth API - add programmatic API for callback URL registration ([6b78563](https://github.com/dataroadinc/dr-ts-setup-auth/commit/6b7856397271d18cf88c105a899425f9409d4811)) - Add SetupAuthAPI class with singleton pattern - Add registerCallbackUrls and updateCallbackUrls functions - Add CallbackUrlConfig and CallbackUrlRegistrationResult types - Implement GCP OAuth client registration and update logic - Add comprehensive error handling and validation - Include placeholder implementations for GitHub, Azure, and LinkedIn providers ### Docs **Style:** - apply prettier formatting to documentation files ([544617f](https://github.com/dataroadinc/dr-ts-setup-auth/commit/544617fab8ca7f3446627f1c8848ad7b098ccb55)) - Fix line wrapping in README.md description - Fix line wrapping in open-source-release.md - Fix line wrapping in planning.md - Ensure consistent formatting across all documentation **Documentation:** - update package description across all files ([0460c21](https://github.com/dataroadinc/dr-ts-setup-auth/commit/0460c212ee141c8685215f8eb21e6823ca0d35fc)) - Update package.json description to new one-line summary - Update README.md with consistent description - Update CLI description in src/index.ts - Update documentation files with new description - Standardize on 'CLI tool and programmatic API for automated OAuth setup across cloud platforms' - apply prettier formatting to installation instructions ([ae2f74f](https://github.com/dataroadinc/dr-ts-setup-auth/commit/ae2f74ff0184175c04d7325de44d61ddc4615fd6)) - Fix line wrapping for long text in installation section - Ensure consistent formatting with project standards - clarify installation instructions for devDependency vs dependency ([2cb2320](https://github.com/dataroadinc/dr-ts-setup-auth/commit/2cb232029ac1ac4affd14725b8fd9f1c57ab7f02)) - Add clear recommendation for devDependency as default - Separate CLI usage (devDependency) from programmatic API usage (dependency) - Add specific use cases and examples for each installation method - Improve clarity on when to use each installation type - add comprehensive badges to README ([543108c](https://github.com/dataroadinc/dr-ts-setup-auth/commit/543108c4df1a59d684012852d2b5dd483212812f)) - Add npm version and downloads badges - Add license, CI, and release workflow badges - Add Node.js, TypeScript, and pnpm version badges - Follow same pattern as versioning repo for consistency - reorganize PLAN.md into topic-specific documentation ([971fd56](https://github.com/dataroadinc/dr-ts-setup-auth/commit/971fd5668a75a5c8afbb8724c22959fb55b3e435)) - Move PLAN.md to docs/planning.md - Split PLAN.md content into topic-specific files: - docs/open-source-release.md: Open source release planning and status - docs/vercel-integration.md: Vercel integration details and API usage - docs/gcp-integration.md: Google Cloud Platform integration and limitations - docs/automation-testing.md: Automation principles and testing strategies - docs/authentication-workflow.md: Authentication automation and developer workflow - docs/oauth-automation.md: OAuth automation implementation and achievements - Add docs/markdown-formatting.md: Comprehensive markdown formatting standards - Update docs/README.md: Add all new documentation files to index - Update main README.md: Reference all new documentation files - Apply markdown formatting rules: 80-char line length, proper spacing - reorganize documentation structure ([52bb4e6](https://github.com/dataroadinc/dr-ts-setup-auth/commit/52bb4e6be2eba4612d5f5fa34a7397249ecf2549)) - Move DEVELOPMENT.md to docs/ directory - Split documentation into topic-specific files: - docs/development.md: Complete development setup and workflow - docs/formatting.md: Code formatting and IDE setup - docs/versioning.md: Stateless versioning with dr-ts-versioning - Add docs/README.md as documentation index - Update main README.md with improved structure and docs links - Add features section highlighting key capabilities ### Project **Documentation:** - update README with programmatic API section ([9cecd39](https://github.com/dataroadinc/dr-ts-setup-auth/commit/9cecd39ee8654d31fa0f0789c8a2c38d475c13a6)) - Add programmatic API overview to README - Include basic usage examples - Add integration examples for Next.js and CI/CD - Link to comprehensive API documentation - add comprehensive programmatic API documentation ([e42078c](https://github.com/dataroadinc/dr-ts-setup-auth/commit/e42078c981a24e83bbd1d41e729950fa78f9a91d)) - Add complete API usage guide - Include integration examples for Next.js and CI/CD - Add error handling and best practices - Include migration guide from CLI to API **Features:** - add programmatic API usage examples ([ce6ad13](https://github.com/dataroadinc/dr-ts-setup-auth/commit/ce6ad13f73eab089b8b09bbf777a331e622559af)) - Add comprehensive example file demonstrating API usage - Include examples for different providers and scenarios - Add error handling and retry logic examples - Include environment-specific configuration examples - migrate to @dataroadinc organization ([ef3e1ca](https://github.com/dataroadinc/dr-ts-setup-auth/commit/ef3e1ca7520ae0f52d424674d1903c65e28c5120)) - Rename package from dr-ts-setup-auth to @dataroadinc/setup-auth - Update package.json name and bin field - Update README.md installation instructions - Update docs references to new package name - Rename workspace file to match new organization - integrate dr-ts-versioning for stateless versioning ([0cae979](https://github.com/dataroadinc/dr-ts-setup-auth/commit/0cae97979e05873c8db0992f9afacdf0b9013c96)) - Add versioning scripts to package.json - Set up stateless versioning with dr-ts-versioning package - Enable automated changelog generation - Configure version management commands - integrate dr-ts-versioning for stateless versioning ([7d01f10](https://github.com/dataroadinc/dr-ts-setup-auth/commit/7d01f10a3bf8cc45ce930487f7bb6134542e2451)) - Add versioning scripts to package.json - Set up stateless versioning with dr-ts-versioning package - Enable automated changelog generation - Configure version management commands - configure consistent prettier formatting across environments ([d97fe51](https://github.com/dataroadinc/dr-ts-setup-auth/commit/d97fe51304e0b22605fb83c48633dbcbaf82ab86)) - Add prettier.config.js with explicit configuration - Add VS Code/Cursor settings for consistent formatting - Add .prettierignore for proper file exclusions - Update workspace configuration with formatting settings - Add development documentation with setup instructions - Remove legacy .prettierrc in favor of prettier.config.js - add CODEOWNERS file and simplify CI workflow ([dfe3505](https://github.com/dataroadinc/dr-ts-setup-auth/commit/dfe3505c395f987c40acc1cdccad5a5ed89efb6a)) - Add CODEOWNERS file with @dataroadinc and @jgeluk as global owners - Simplify CI workflow by removing NPM_TOKEN conditional check - This ensures automatic code review requests for all PRs - initial open source release ([68221da](https://github.com/dataroadinc/dr-ts-setup-auth/commit/68221da36babf78bad9af077bc709c164036686d)) - Remove all hardcoded secrets and dataroad-specific references - Make project name configurable via EKG_PROJECT_NAME env var - Add comprehensive environment variable documentation - Implement markdown formatting rules and linting - Add GitHub Actions CI/CD workflows - Add commitlint and conventional commits configuration - Add Prettier and ESLint configuration - Add comprehensive TypeScript setup with path mapping - Add comprehensive test setup with Vitest - Add Husky git hooks for pre-commit and commit-msg - Add comprehensive documentation and examples - Convert test files from Node.js to Vitest syntax ### Test **Style:** - apply prettier formatting to API test file ([67fc35c](https://github.com/dataroadinc/dr-ts-setup-auth/commit/67fc35c74eec3b5a2b16167b0bd6a97255e2920c)) - Fix line wrapping for long TypeScript casting expressions - Ensure consistent formatting with project standards ### Types **Style:** - apply prettier formatting to type annotation changes ([be20c2d](https://github.com/dataroadinc/dr-ts-setup-auth/commit/be20c2d50aeb10f7de0054f9fc2424acb91ecdb7))