feat(oidc): Google/Discord OIDC reference plugins with One Tap login and hostconfig-based settings#15
Open
osindex wants to merge 4 commits into
Open
Conversation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…hostconfig upsert
…rage and provider engine - new source plugin linapro-oidc-core: user_external_identity table (partial unique index on provider+subject), externalidentityspi.Provider implementation (resolve, idempotent provisioning, email-conflict mapping, email-less deterministic username anchors, concurrent unique-conflict absorption), self-isolated bind/unbind/list API with i18n - linapro-oidc-google / linapro-oidc-discord: declare dependency on linapro-oidc-core; README boundary corrections (linkage storage and provisioning policy now live in the core plugin) - org-core / tenant-core test fakes: add usercap.Service ProvisionExternal conformance stubs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
linapro-oidc-google: newPOST /portal/linapro-oidc-google/onetaproute with GSI double-submit CSRF check, JWKS-backed ID token verification (1h key cache), admin on/off switch (fail-closed), and SSO/SPA redirect semantics shared with the authorize-code callback.linapro-oidc-googleandlinapro-oidc-discordfrom install SQL to hostconfig capability upsert (seed/uninstall SQL removed, rows created withIsBuiltin=0).ONE_TAP_DISABLED,ONE_TAP_CSRF_MISMATCH) in zh-CN/en-US.Branch also carries the two base commits introducing the Google and Discord OIDC reference plugins on the host external-login seam.
Tests
go build ./...andgo vet ./...pass for both plugins.make lintnot run in this environment (local gofmt version mismatch).