stevearc / pypicloud

S3-backed pypi server implementation
MIT License
506 stars 141 forks source link

Active Directory #282

Open doublethink13 opened 3 years ago

doublethink13 commented 3 years ago

Hey,

I'm sorry if this is not the best place to ask this.

Feel free to close/delete this issue and redirect me to a more appropriate place.

I want to know if it is possible to integrate pypicloud with Active Directory and, if so, if there is a guide/tutorial/docs to help me.

Thank you and keep up the good work!

stevearc commented 3 years ago

There aren't any guides/tutorials, but the process of adding a new user authentication mechanism is pretty straightforward. You'll need to create a new class that inherits IAccessBackend and implement all the abstract methods. Of the existing backends, the one for LDAP is probably the closest to your needs. If you examine and understand what it's doing, it shouldn't be too hard to do the same thing for Active Directory.