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

Question: How to bypass MSAL authentication for unit testing? #4

Closed esenseial closed 3 years ago

esenseial commented 3 years ago

Are there any best practices to bypass MSAL authentication for unit testing?

I already tried to do so using dependency_overrides but I could not figure out how to make it work.

Greetings, Michael

dudil commented 3 years ago

Hi Michael,

Could you please be more specific around what you are trying to achieve? What exactly the scenario you are trying to test? Is there any specific flow or API in mind you were looking for in the library? Are you looking for a mockup api? or maybe a way to have a "silent" authentication to MSAL?

Would love to help once I know exactly what you are looking for.

Cheers, @dudil

dudil commented 3 years ago

@esenseial - are you still require my assistance here? :smile:

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 3 years ago

This issue was closed because it has been stalled for 5 days with no activity.