A saved SSO scope list and saved self-signed certificate names replace the defaults instead of being added to them #458

Merged
claude merged 4 commits from feature/448-sso-scopes-not-doubled into develop 2026-11-14 04:43:56 -05:00
Owner

Closes #448

The configuration binder appends a saved array to a list that already has items. OidcSsoOptions.Scopes started with the three default scopes, so after a restart a saved list read back doubled in GET /api/sso-settings, and a saved list that left out profile or email still requested it. The same held for the self-signed certificate names, whose saved list was appended to localhost.

Both options now hold only what is saved, and a read-only Effective… member gives the saved list or the default. The identity provider never received a duplicated scope (the handler's scope set removes duplicates); that was checked by a verifier and the CHANGELOG says what did happen.

For code that uses the NuGet packages, the CHANGELOG entry names the two properties whose meaning changed.

Checked by a verifier on a merge with develop: build with 0 warnings; the whole solution's tests including the Docker-tagged ones pass, apart from the two SpaFallbackTests that need a built console; the OpenAPI snapshot and ENVIRONMENT.md are unchanged.

First of a stack of two (CHANGELOG order): this one, then #449.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK

Closes #448 The configuration binder appends a saved array to a list that already has items. `OidcSsoOptions.Scopes` started with the three default scopes, so after a restart a saved list read back doubled in `GET /api/sso-settings`, and a saved list that left out `profile` or `email` still requested it. The same held for the self-signed certificate names, whose saved list was appended to `localhost`. Both options now hold only what is saved, and a read-only `Effective…` member gives the saved list or the default. The identity provider never received a duplicated scope (the handler's scope set removes duplicates); that was checked by a verifier and the CHANGELOG says what did happen. For code that uses the NuGet packages, the CHANGELOG entry names the two properties whose meaning changed. Checked by a verifier on a merge with `develop`: build with 0 warnings; the whole solution's tests including the Docker-tagged ones pass, apart from the two `SpaFallbackTests` that need a built console; the OpenAPI snapshot and ENVIRONMENT.md are unchanged. First of a stack of two (CHANGELOG order): this one, then #449. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #448

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs and finishes the saved-list handling for options with a default list.

Closes #448

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Refs #448

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
Merge develop into the SSO scopes branch
All checks were successful
Build / Compute Version (pull_request) Has been skipped
Build / Test .NET on Windows (pull_request) Has been skipped
Build / Windows Test Gate (pull_request) Has been skipped
Build / Test Admin Console (pull_request) Successful in -47s
Build / Lint and Script Tests (pull_request) Successful in -1m58s
Build / Test .NET (pull_request) Successful in 3m36s
Build / Stage Draft Release (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (common) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dhcp) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-core) (pull_request) Has been skipped
Build / Pack and Push NuGet Packages (dns-server) (pull_request) Has been skipped
Build / Build Binary (linux-amd64) (pull_request) Has been skipped
Build / Build Binary (linux-arm64) (pull_request) Has been skipped
Build / Build Binary (macos-amd64) (pull_request) Has been skipped
Build / Build Binary (macos-arm64) (pull_request) Has been skipped
Build / Build Binary (windows-amd64) (pull_request) Has been skipped
Build / Build and Test Deb and RPM Packages (pull_request) Has been skipped
Build / Build Arch Linux Packages (pull_request) Has been skipped
Build / Build and Push Image (pull_request) Has been skipped
Build / Smoke Test the Windows Binary (pull_request) Has been skipped
Build / Publish Release (pull_request) Has been skipped
Build / Pipeline (pull_request) Successful in 0s
ea6b36c371
Refs #448

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK
claude merged commit 4313f8b718 into develop 2026-11-14 04:43:56 -05:00
claude deleted branch feature/448-sso-scopes-not-doubled 2026-11-14 04:43:56 -05:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil!458
No description provided.