Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/26/2024 02:43 AM
Hi,
We are trying to onboard Google Play Console as a Rest based application, and the application Team has provided the following APIs for the integration:
https://developers.google.com/android-publisher/api-ref/rest/v3/users
They are using Service Account key for authentication and have shared the JSON key. (https://developers.google.com/identity/protocols/oauth2/service-account#httprest)
After check the API response for Import, I can see that grant object is part of the response!
How will the importJSON look in this case?
We are unable to use GCP connector as the application team doesn't have G-suite/ directory access.
Regards,
Athira Vijiayan
08/26/2024 03:03 AM
Hi @ASVijayan , what do you plan to do with grants array?
08/26/2024 06:13 AM
08/26/2024 09:24 AM
Hi @NM : We need to create the importJSON and grants is the access for this application.
Hi @rushikeshvartak : I am attaching the connection JSON. It is not tested yet since we are not sure how to create the import JSON from the APIs mentioned in the documentation I have mentioned above. Since this is REST, it's difficult to find out if the connection JSON is working without the import json.
Also, there are so many "\n" in the private key. Should those be removed?
08/26/2024 09:28 AM
Refer sample
{
"authentications": {
"acctAuth": {
"authType": "Jwt",
"httpParamsName": "assertion",
"jwtConfig": {
"jwtHeader": {
"alg": "<specify algorithm>",
"typ": "JWT",
"kid": "<specify key ID>"
},
"jwtPayload": {
"iss": "<specify ISS>",
"sub": "<specify subject>",
"aud": "<specify audience>",
"scope": "https://www.googleapis.com/auth/admin.directory.user https://www.googleapis.com/auth/admin.directory.group https://www.googleapis.com/auth/admin.directory.domain"
},
"signedAlgorithm": "<specify signed algorithm>",
"key": "<specify key>",
"jwtExpiryDuration": 120
},
"url": "<specify URL>",
"httpMethod": "POST",
"httpParams": {
"grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer"
},
"httpContentType": "application/x-www-form-urlencoded",
"retryFailureStatusCode": [
401,
500,
400
],
"authError": [
"SESSION_NOT_VALID",
"AuthenticationFailed",
"ExpiredJwtException",
"401 Unauthorized",
"401",
"You couldn't be authenticated"
],
"errorPath": "code",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": ""
}
}
}
08/26/2024 09:32 AM
Hi @rushikeshvartak ,
Yes, we referred this and created the connection JSON, but mostly need help with importJSON.
Regards,
Athira
08/26/2024 09:36 AM
Does connection is successful ?