-
Notifications
You must be signed in to change notification settings - Fork 32
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
Remove duplicate scopes value in reference.conf #314
Remove duplicate scopes value in reference.conf #314
Conversation
d5d5849
to
9c691b2
Compare
9c691b2
to
2f82489
Compare
Pinging @armanbilge since you originally wrote this, not sure if you wanted to throw in a quick 2c |
you'll need something like https://github.com/apache/incubator-pekko-connectors/pull/311/files#diff-5634c415cd8c8504fdb973a3ed092300b43c4b8fc1e184f7249eb29a55511f91R16 to get the mima check to work - v1.0.2-RC1 is current latest tag and this is only in staging repo - this PR looks like it could have a big mima footprint |
This PR doesn't have any MiMa impact, ill just rebase when 1.0.2 is released |
@@ -37,7 +37,7 @@ private[auth] object GoogleOAuth2 { | |||
|
|||
private val oAuthTokenUrl = "https://oauth2.googleapis.com/token" | |||
|
|||
def getAccessToken(clientEmail: String, privateKey: String, scopes: Seq[String])( | |||
def getAccessToken(clientEmail: String, privateKey: String, scopes: Set[String])( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think a mina filter will be needed. or add an overloaded method which use seq.toSet then?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll wait till 1.0.2 is out since that will fix the existing MiMa issue and then I will see.if this is still problematic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
2f82489
to
fd460e2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Merging this since |
While working on #313 I realized that we have duplicate scope configuration settings, i.e. one here and another here.
This PR removes the scopes config here and instead makes the
ServiceAccountCredentials
use the scopes value from here which is currently unused.We also change the collection from a
Seq
/List
to aSet
since we want duplicates to be removed and ordering does not matter (also to make it consistent with #313)