ai-cfia / membrane-backend

Membrane Backend: A centralized authentication service for Single Sign-On (SSO) enabling seamless token-based email verification across multiple client applications.
MIT License
1 stars 0 forks source link

issue #75: first draft #78

Open k-allagbe opened 10 months ago

k-allagbe commented 10 months ago

75

issue75-declarative-env-var-validation

This solution uses Pydantic and Pydantic-Settings for the handling of the validations and nice exceptions.

The dynamic_env_validator.py ensures we can create a vlidation model (DynamicSettings) from a yaml file (env.yaml).

When the DynamicSettings is instantiated with the .env file, it validates the env vars.

rngadam commented 10 months ago

If this is a draft, you should "Convert to draft".

rngadam commented 9 months ago

@k-allagbe get this functionality into its own repo as there are more work to be done here.

k-allagbe commented 9 months ago

@k-allagbe get this functionality into its own repo as there are more work to be done here.

@rngadam Done. https://github.com/ai-cfia/obol

rngadam commented 9 months ago

@rngadam Done. https://github.com/ai-cfia/obol

I see you have this issue pending:

https://github.com/ai-cfia/obol/issues/1

k-allagbe commented 9 months ago

@rngadam Done. https://github.com/ai-cfia/obol

I see you have this issue pending:

ai-cfia/obol#1

The PR is here: https://github.com/ai-cfia/obol/pull/2