-
Notifications
You must be signed in to change notification settings - Fork 365
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New group config in OAuthenticator overlaps with allowed_google_groups
for example and may not work - what do we do?
#756
Comments
While they are related, I'm not sure they overlap. But we should definitely communicate about them better! The difference is that There are two categories of config here:
I'll take a stab at a docs update. I don't think there's a behavior problem. |
Hopefully #757 clarifies some things, but please feel free to point out anything that you think still needs clarifying or should have an example. |
Thank you @minrk for clarifying things! Before closing this, I'd like to add test that this still works as intended with various additional authenticator classes than just Generic and OpenShift. |
I'm not sure I follow what you would like a test for, can you give an example config? We do already have tests for the other Authenticator classes |
Even if things are unrelated, I don't trust yet that the implementation works for all authenticators because I saw that I'll spend time looking into this tomorrow I hope, but I'd like to have basic tests related to |
Got it! I'll make sure there are tests that cover both |
...and you're absolutely right! The lack of super calls in |
I'm stuck a bit API-design-wise. In 16.x, class A:
def method(self):
do_something_with_subclass_info()
class B(A):
def method(self):
populate_something()
return super().method()
class C(B):
def method(self):
# how do I inject something between populate_something and A.method()? That makes me think that we should define the base |
I'm not sure either atm, but I can come back and think -- for now lunch break, I'm not sure when I find time to work further but hope to have it later today. |
I did some checks against all authenticators, and my conclusion is that this is whats to be communicated in the changelog for v17:
|
#735 moved group related config in Generic to OAuthenticator, and did a breaking change related to that group config previosly found only in GenericOAuthenticator.
Documentation about breaking change from #735
We have two situations to address in my mind:
Some classes have two sets of group config without guidance on whats supported and recommended to use.
For example, these configs are available side by side with
allowed_groups
now.GitHubOAuthenticator.allowed_organizations
GitLabOAuthenticator.allowed_gitlab_groups
GlobusOAuthenticator.allowed_globus_groups
GoogleOAuthenticator.allowed_google_groups
New set of group config may not work consistently across authenticator classes
Searching for
def update_auth_model
in the code base, it seems we typically don't call the base class implementation, making logic required for the new set of group config.Tests were updated in Generic and OpenShift, but not in other classes such as GitHub, GitLab, Globus, Google.
The text was updated successfully, but these errors were encountered: