From my few days effort online in analyzing OAuth2, I understood the below things to use OAuth2.0.
Initial step is to create app in gcp and get client id and cli