-
Notifications
You must be signed in to change notification settings - Fork 11
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
deprecated GoogleGroupChecker constructor seems broken #86
Comments
(slightly confusing typo here, I think you mean " That's interesting - it looks like that not-null requirement on Good spot - The docs for
I guess this more closely matches the definition of our
...but I had incorrectly been putting that into
...that field
So the correct mapping would be:
Although the
I'm happy enough to do 1, though I don't think I have a good codebase to test it on - you could perhaps try it on yours, if I release it? |
I don't have anything in production that uses the deprecated method but I can refactor it back to test in |
I was encountering NullPointer exceptions when updating the
play-googleauth
version in our project.I might be doing something wrong but it seems to me like the deprecated GoogleGroupChecker constructor that takes a
GoogleServiceAccount
doesn't build an equivalentServiceAccountCredentials
properly.It sets privateKey and serviceAccountUser`:
play-googleauth/play-v27/src/main/scala/com/gu/googleauth/groups.scala
Lines 61 to 69 in d60875f
But the
GoogleServiceAccount
class requires clientEmail to be set (see code here )It might be that we just should be setting clientEmail instead of, or in addition to serviceAccountUser I'm not sure what the difference is exactly.
I just refactored my code to not use this method anyway so It's not blocking anything on my side.
The text was updated successfully, but these errors were encountered: