1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question [SOLVED] OAuth2 for server to server communication - Google Play Android developer API

Discussion in 'Android Questions' started by hatzisn, Aug 17, 2019.

  1. hatzisn

    hatzisn Active Member Licensed User

    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
     
  2. hatzisn

    hatzisn Active Member Licensed User

  3. hatzisn

    hatzisn Active Member Licensed User

    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.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice