-
Goal: Trying to make a call to the Google Admin SDK API using the Google Service Account Authentication option
-
Steps: See attached. I've confirmed that this service account has the proper scopes and authorization.
-
Details: I'm getting an error about the Authorization keypair in the header but I'm not sure it needs it. What can I do? All I've found about Google Service Account Authentication is here. I was able to get the json but it's the Authorization header that's the problem. Can you please help? Thanks
@bhsuarez ,
I don't see any known Retool bugs related to this.
Does this request work outside of retool? (have you tested it in postman, for example?)
Yes. I discovered the issue happens when I use more than one OAuth2 scope. If I use a single OAuth2 scope it works fine even though my service account has more than one scope granted to it.
@bhsuarez ,
I can't see it really clearly cuz it's cut off, but it looks like you have your scopes separated by a return. Is that correct? Can you try just pasting the second one after the first one, followed by a space?
I am using a space. Because of the size of the text field it seems to put the next scope below it even though itβs delimited by a space, not a new line.
@bhsuarez,
Let me just clarify. When you remove the second scope, you no longer get that 401 error and it works just fine? Unfortunately I have not been able to replicate this behavior.
Is it scope specific? What if you change the first one and replace it with the second scope and use a different endpoint that relies on that scope? What if you just change the order of the scopes?
Thanks!