feat: add support for disabling Connect OAuth2.RegisterOnFirstLogin#87
feat: add support for disabling Connect OAuth2.RegisterOnFirstLogin#87
Conversation
Add registerOnFirstLogin bool field to AuthSpec, wired through to Connect OAuth2 config generation. When not set (false), writes RegisterOnFirstLogin = false to the gcfg. When true, writes RegisterOnFirstLogin = true. Closes #86.
Move the field from the shared AuthSpec to Connect-specific ConnectSpec and InternalConnectSpec. This prevents Workbench and Site auth CRDs from accepting a field that only applies to Connect OAuth2. Add a warning log when the field is set with non-OIDC auth.
Distinguish between auth type not configured (empty) and auth type set to a non-OIDC value. Include the actual auth type in the log for the non-OIDC case.
Add tests verifying RegisterOnFirstLogin is ignored (not written to config) when auth type is empty or SAML. Fix inconsistent warning message wording between the two branches.
|
Claude finished @statik's task —— View job PR Review: feat: add support for disabling Connect OAuth2.RegisterOnFirstLoginClean, well-structured addition that follows existing codebase patterns. Tests are thorough with good coverage of both the happy path and edge cases. A few observations:
|
|
@claude review this PR again |
|
Claude finished @statik's task —— View job PR Review: feat: add support for disabling Connect OAuth2.RegisterOnFirstLogin
This PR is clean and ready to merge. All observations from the previous review have been addressed — notably, site-level integration tests ( SummaryThe implementation correctly adds Code Quality
Tests
No Issues FoundThe previous review's suggestion to simplify the two warning branches ( LGTM — this is a well-structured, backward-compatible addition with thorough test coverage across all layers (unit, integration, site propagation). |
|
FWIW, I ran roborev GPT-5.2 Codex across four review turns as well as applying the claude code review suggestions. |
# [1.11.0](v1.10.1...v1.11.0) (2026-02-18) ### Features * add support for disabling Connect OAuth2.RegisterOnFirstLogin ([#87](#87)) ([32277d7](32277d7))
Summary
This change is fully backward compatible and has no effect on existing deployments. It allows sites to decide to override this setting from the default.
Closes #86
Test plan