Add configurable strict SSO session handling #49
Labels
No labels
area/core
area/integration
area/release
security
type/bug
type/docs
type/epic
type/feature
type/infrastructure
type/test
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#47 Enforce external identity for Ghost Admin sessions
frank/ghost-oauth
Reference
frank/ghost-oauth#49
Loading…
Reference in a new issue
No description provided.
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?
Goal
Wire strict session handling into Ghost’s SSO adapter integration without changing the behavior of existing adapters.
Requirements
ghost/core/core/server/services/auth/session/index.js.removeUserForSessioninto the SSO exchange middleware.SSOBaseif strict mode should become part of the supported adapter contract.Acceptance criteria
Further information and implementation sketch
Ghost currently constructs the SSO middleware in:
The relevant wiring currently resembles:
A minimal internal implementation could read an optional adapter property:
An adapter could then opt in with:
For a cleaner public contract, the base class could expose an optional capability:
Alternatively, strict mode could be supplied through adapter configuration:
The constructor would retain the setting:
Whether this belongs on
SSOBaseor only in the adapter configuration should be decided before implementation. Putting it onSSOBasemakes the behavior discoverable and reusable for other SSO adapters.Relevant implementation:
ghost/core/core/server/services/auth/session/index.jspackages/adapters/sso-base/src/base.tspackages/adapters/sso-base/test/index.test.ts