feature(auth): Azure AD OAuth
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!
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:
- https://github.com/bugy/script-server/blob/6015e14bfc286f0ad48ad61671706112672a6fee/src/model/server_conf.py#L222 (add an initialization for a new type)
- https://github.com/bugy/script-server/blob/master/web-src/src/login/login.js (UI component, responsible for login flow)
Thank you, bugy. I will look into it!