Skip to content

feat(web): normalize plugin OAuth provider id - #241

Merged
seakee merged 2 commits into
mainfrom
feat/plugin-oauth-provider
Jun 26, 2026
Merged

seakee merged 2 commits into
mainfrom
feat/plugin-oauth-provider

Conversation

@seakee

@seakee seakee commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Summary

Normalize plugin OAuth provider ids in the web panel so plugins can publish an explicit OAuth provider key without colliding with built-in providers.
Keep legacy behavior for plugins that support OAuth but do not provide an explicit provider id.

Scope

  • Frontend panel
  • Manager Server
  • CPA panel mode
  • Full Docker mode
  • Native packages / release
  • Docs / Wiki
  • CI / build / tooling

Changes

  • Add plugin OAuth provider id normalization from oauth_provider / oauthProvider.
  • Use resolved OAuth provider ids when rendering plugin OAuth login entries.
  • Hide plugin OAuth entries that resolve to built-in provider ids.
  • Add focused tests for plugin list normalization and OAuth provider helper behavior.

User Impact

Plugins can register custom OAuth provider ids without being forced to use the plugin id in the OAuth login flow.

Compatibility / Runtime Notes

  • CPA panel mode: Plugin OAuth entries continue to load through the existing plugin list API.
  • Manager Server mode: No backend behavior change.
  • Full Docker / native packages: No packaging behavior change.

Data / Security Notes

N/A

Risk / Rollback

Risk level: Low

Rollback notes:

  • Revert this PR to restore the previous plugin-id-based OAuth provider behavior.

Verification

  • Type check
  • Lint
  • Tests
  • Build
  • Manual UI check
  • Docs/link check
  • Not applicable, docs-only

Commands / evidence:

git diff --check origin/main...HEAD

Screenshots / Recordings

N/A

Docs

  • README updated
  • Wiki updated
  • Release notes needed
  • Not needed

Related

N/A

seakee added 2 commits June 25, 2026 21:28
Honors an explicit oauth_provider field on the plugin manifest so

plugins can register a custom OAuth key without colliding with the

built-in provider ids. The legacy fallback to the plugin id is gated

on the field being absent, so plugins that already publish a custom

oauth_provider are not silently overridden. A small helper centralizes

the resolution and the visibility rule for the OAuth page.
@seakee
seakee merged commit ab25434 into main Jun 26, 2026
4 of 5 checks passed
@seakee
seakee deleted the feat/plugin-oauth-provider branch June 26, 2026 01:13
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.

1 participant