I am trying to do Google API authorization through both Web Application approach and service account approach. For web application approach, the quick start code from their website works fine. However when I tried the same code with service account Client ID (same code as the quick start example, just replacing the Client ID), it gives me Invalid_client no registered origin error.
I saw in this post and other SO questions, mostly they forgot to put the Authorized Javascript Origin. However, this is different for service account approach, they don't have this field.
Anyone encountered same issue?
Error message: no registered origin
Request Details proxy=oauth2relay1086088613
immediate=false
scope=https://www.googleapis.com/auth/analytics.readonly
origin=https://localhost:9443
response_type=token
redirect_uri=postmessage
state=909080772|0.2369183797
client_id=113356969233986791514
include_granted_scopes=true