Google-api-php-client: Can't find the way to authenticate with server code

Created on 21 Jun 2020  ·  5Comments  ·  Source: googleapis/google-api-php-client

Hello everyone!

I am trying to save files to Google Cloud on android client (Unity) and read these files on the web server.

I already used id token, but it doesn't provide necessary access.
I'm trying to use server authentication codes. I successfully get them on the client and send to the server, but then can't exchange the tokens for the access to the account, because the code in the documentation isn't for php based server, so isn't for google API php client
But I can't find something suitable in this solution.
Can you prompt me something usable?

Thanks!

question

Most helpful comment

Thanks @jdpedrie! The Authentication with OAuth is suitable for me. I overlooked it in some way and started looking in other documentation.

All 5 comments

may google card,may spend server

вс, 21 июн. 2020 г. в 06:26, bylbaboy notifications@github.com:

Hello everyone!

I am trying to save files to Google Cloud on android client (Unity) and
read these files on the web server.

I already used id token, but it doesn't provide necessary access.
I'm trying to use server authentication codes
https://github.com/playgameservices/play-games-plugin-for-unity#retrieving-server-authentication-codes.
I successfully get them on the client and send to the server, but then
can't exchange the tokens for the access to the account, because the code
in the documentation
https://developers.google.com/identity/sign-in/web/server-side-flow#step_6_send_the_authorization_code_to_the_server
isn't for php based server, so isn't for google API php client
But I can't find something suitable in this solution.
Can you prompt me something usable?

Thanks!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/googleapis/google-api-php-client/issues/1856, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/APNECNNJEQC7HQKMOI7ZTATRXVHUJANCNFSM4ODTOZMA
.

may be off platform as services
may google cloud as services~infrastructura as services

вс, 21 июн. 2020 г. в 16:24, Aleksey Lozhkin citadellozhkin@gmail.com:

may google card,may spend server

вс, 21 июн. 2020 г. в 06:26, bylbaboy notifications@github.com:

Hello everyone!

I am trying to save files to Google Cloud on android client (Unity) and
read these files on the web server.

I already used id token, but it doesn't provide necessary access.
I'm trying to use server authentication codes
https://github.com/playgameservices/play-games-plugin-for-unity#retrieving-server-authentication-codes.
I successfully get them on the client and send to the server, but then
can't exchange the tokens for the access to the account, because the code
in the documentation
https://developers.google.com/identity/sign-in/web/server-side-flow#step_6_send_the_authorization_code_to_the_server
isn't for php based server, so isn't for google API php client
But I can't find something suitable in this solution.
Can you prompt me something usable?

Thanks!


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/googleapis/google-api-php-client/issues/1856, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/APNECNNJEQC7HQKMOI7ZTATRXVHUJANCNFSM4ODTOZMA
.

I don't understand you(
Can you describe your solution in more detail?

@bylbaboy have you reviewed the Authentication with OAuth and Authentication with Service Accounts documentation? You may also find useful information in the cross-client identity documentation and its linked pages.

Thanks @jdpedrie! The Authentication with OAuth is suitable for me. I overlooked it in some way and started looking in other documentation.

Was this page helpful?
0 / 5 - 0 ratings