rayluo / identity

This is an authentication/authorization library optimized for web apps. It provides some higher level APIs built on top of Microsoft's MSAL Python. Read its documentation here: https://identity-library.readthedocs.io
https://identity-library.readthedocs.io
MIT License
48 stars 6 forks source link

Introduce an init_app(app) for factory pattern #31

Closed rayluo closed 3 months ago

rayluo commented 3 months ago

This proof-of-concept may close #24. See if that meets your need, @pamelafox . If it looks good, I will see if I can apply same changes to Quart.

joaooliveira-proof commented 3 months ago

I've tested in my app, worked like a charm. Except that the linter did not like that I was passing None to Auth.

rayluo commented 3 months ago

Polished the previous proof-of-concept (PoC), and applied it to Quart, manually tested with my two samples (which will be pushed soon in their own PRs in different repos).

@joaooliveira-proof , if you are still interested, please pull the latest branch and test it again. It shall be a drop-in replacement of the previous PoC, except that the linter shall be happy now. :-)