dudil / fastapi_msal

A FastAPI Plug-In to support authentication authorization using the Microsoft Authentication Library (MSAL)
MIT License
40 stars 20 forks source link

Migration to pydantic v2 (and pydantic-settings) #27

Closed JakobKristoffersenATP closed 11 months ago

JakobKristoffersenATP commented 11 months ago

Thank you for this package! We are currently migrating to pydantic v2 and are having issues with the current version of the package which has a strict dependency to pydantic=1.*.

I propose we migrate to pydantic=2.* and pydantic-settings for BaseSettings (forMSALClientConfig).

Alternatively only migrate to pydantic-settings for usage of BaseSettings and loosen up the pydantic=1.* dependency,

dudil commented 11 months ago

Hi @JakobKristoffersenATP - I've migrated to pydantic version 2 with latest release 2.0 I've conduct some local test but I highly recommend you to perform your own testing to make sure nothing broken.

Good luck.