hatzisn Expert Licensed User Longtime User Aug 17, 2019 #1 Hi everybody, I am trying to understand and implement the Google Play Android Developer API in order to check though a back end if a purchase was completed successfully. I have found these pages in the Internet which describe the way you can implement it: https://developers.google.com/android-publisher/api-ref/purchases/products/get https://developers.google.com/android-publisher/authorization If I have got that right in order for the OAuth2 authentication to be implemented to manage the calls for the back end (to get the tokens), a user (Me) has to actively login in his Google account and authenticate with the corresponding web application. This leads me to the conclusion that I cannot implement it through my website's server since I have to actively login to get the tokens and it is a shared server. Am I correct or am I missing something here? Thanks in advance
Hi everybody, I am trying to understand and implement the Google Play Android Developer API in order to check though a back end if a purchase was completed successfully. I have found these pages in the Internet which describe the way you can implement it: https://developers.google.com/android-publisher/api-ref/purchases/products/get https://developers.google.com/android-publisher/authorization If I have got that right in order for the OAuth2 authentication to be implemented to manage the calls for the back end (to get the tokens), a user (Me) has to actively login in his Google account and authenticate with the corresponding web application. This leads me to the conclusion that I cannot implement it through my website's server since I have to actively login to get the tokens and it is a shared server. Am I correct or am I missing something here? Thanks in advance
hatzisn Expert Licensed User Longtime User Aug 18, 2019 #2 I have found the answer I 've been looking for. The OAuth2 for server to server communication is implemented easily as described in this link. https://developers.google.com/identity/protocols/OAuth2ServiceAccount Then everything is handled by the first link in the previous post. Upvote 0
I have found the answer I 've been looking for. The OAuth2 for server to server communication is implemented easily as described in this link. https://developers.google.com/identity/protocols/OAuth2ServiceAccount Then everything is handled by the first link in the previous post.
hatzisn Expert Licensed User Longtime User Aug 19, 2019 #3 Not solved at last. I choosed the REST/Http way because after seeing some examples of the Google dedicated library for .NET I was completely lost. Thus in the way I followed I was stuck in the signing of the JWT (Java Web Token) with the algorythm decribed as SHA256withRSA. No matter how much I googled it I could not find a working .NET example. Has anyone implemented it in .NET. Upvote 0
Not solved at last. I choosed the REST/Http way because after seeing some examples of the Google dedicated library for .NET I was completely lost. Thus in the way I followed I was stuck in the signing of the JWT (Java Web Token) with the algorythm decribed as SHA256withRSA. No matter how much I googled it I could not find a working .NET example. Has anyone implemented it in .NET.