Skip to content

Support callable origins for dynamic validation - #401

Open
azmeuk wants to merge 1 commit into
corydolphin:mainfrom
azmeuk:281-callable-origin
Open

Support callable origins for dynamic validation#401
azmeuk wants to merge 1 commit into
corydolphin:mainfrom
azmeuk:281-callable-origin

Conversation

@azmeuk

@azmeuk azmeuk commented Jan 8, 2026

Copy link
Copy Markdown

Allow the origins parameter to be a callable that receives the request origin and returns allowed origins at runtime. This enables dynamic origin validation against databases or external services without restarting the application.

My use case is Canaille, an identity server. I would like to authorize the domain of new OIDC clients dynamically when they are created.

fixes #281
supersedes #268 and #282

Allow the `origins` parameter to be a callable that receives the
request origin and returns allowed origins at runtime. This enables
dynamic origin validation against databases or external services
without restarting the application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support runtime injection of origin

1 participant