bugy / script-server

Web UI for your scripts with execution management
Other
1.52k stars 244 forks source link

feature(auth): Azure AD OAuth #741

Open 0lionelzhang0 opened 3 months ago

0lionelzhang0 commented 3 months ago

Hello!

Thank you bugy for this amazing tool. I was wondering if there are any plans to add auth support for Azure AD OAuth?

If not, would you mind providing some pointers on how one could implement that?

Thanks!

bugy commented 3 months ago

Hi, unfortunately, it's not supported. But if it's more or less the standard OAuth implementation, it should be quite straightforward to implement. Here is an example of Google OAuth: https://github.com/bugy/script-server/blob/master/src/auth/auth_google_oauth.py It's pretty small, since the main implementation is located in the parent OAuth class: https://github.com/bugy/script-server/blob/master/src/auth/auth_abstract_oauth.py

Besides this class, the following things should be updated:

0lionelzhang0 commented 3 months ago

Thank you, bugy. I will look into it!