Skip to content

Conversation

@petruki
Copy link
Member

@petruki petruki commented Sep 13, 2025

This pull request introduces support for multiple authentication providers (email, GitHub, Bitbucket) in the Switcher API, updates related documentation, and improves dependency versions for better stability and security. The most important changes are grouped below.

Authentication Provider Support

  • Added auth_provider field to the admin model and OpenAPI schema, with support for email, github, and bitbucket values. This field is set appropriately during account creation, including third-party OAuth flows. (src/models/admin.js, src/api-docs/schemas/admin.js) [1] [2] [3]
  • Updated tests to verify correct assignment of the auth_provider field for email, GitHub, and Bitbucket signups. (tests/admin.test.js) [1] [2] [3]

Documentation Updates

  • Added detailed instructions to the README.md for setting up GitHub and Bitbucket OAuth apps, including required environment variables. (README.md)
  • Clarified component and switcher descriptions in the README.md to reflect API key usage and entry point semantics. (README.md) [1] [2]

Dependency Upgrades

  • Upgraded key dependencies to latest versions for security and compatibility, including axios, pino, and others in package.json and npm-shrinkwrap.json. (package.json, npm-shrinkwrap.json) [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

@petruki petruki added this to the v1.4.1 milestone Sep 13, 2025
@petruki petruki self-assigned this Sep 13, 2025
@sonarqubecloud
Copy link

@petruki petruki merged commit 2b98eb8 into master Sep 13, 2025
5 checks passed
@petruki petruki deleted the staging branch September 13, 2025 20:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants