mirror of
https://github.com/fosrl/pangolin.git
synced 2026-05-22 17:43:04 -05:00
[GH-ISSUE #1895] Configure 'Auto Login with External IDP' via blueprints #10799
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oschwartz10612 on GitHub (Nov 19, 2025).
Original GitHub issue: https://github.com/fosrl/pangolin/issues/1895
Originally assigned to: @Copilot on GitHub.
Discussed in https://github.com/orgs/fosrl/discussions/1761
Originally posted by dephekt October 27, 2025
Summary
I'd like to be able to enable the Auto Login with External IDP setting either via:
Motivation
I don't want to set the "Auto Login with External IDP" setting on every resource in the UI when I already use blueprints to convey similar config state to Pangolin. And I don't want to write and manage a separate script just to ensure new resources are configured with the setting.
Proposed Solution
I reviewed the NextJS frontend to understand how it determines the state of the UI element in the resource auth configuration dashboard. I see here it posts to the resource to essentially patch it with
skipToIdpId: selectedIdpId. This exposes it in the resource schema like this:Clearly the resource model already supports it and there's an endpoint to set and update the key. So it seems this setting just needs exposed and wired up in the relevant blueprint model. I found that here in server/lib/blueprints/types.ts:
Then I think it needs wired to the resource creation in server/lib/blueprints/proxyResources.ts here and similarly during the resource update here.
Alternatives Considered
I could easily script setting the configuration via the API. It's just another thing to manage and remember, when I prefer to consolidate the resource config within the Docker labels. Keeping it in sync becomes another thing to deal with also.
It's worth considering if it should be an org or other higher level setting, or such a higher setting that can override at the resource level.
Additional Context
No response