Google oauth2 id_tokens を検証するための単純な Python サーバーがあります。このコードを実行すると、次のエラーがスローされますAppIdentityError: Wrong recipient
。
def verify():
id_token = request.form['id_token']
status = {}
if id_token is not None:
try:
jwt = verify_id_token(id_token, config['google']['clientId'])
status['valid'] = True
status['jwt'] = jwt
except AppIdentityError:
status['valid'] = False
status['message'] = "Invalid id token"
pprint.pprint(status)
response = make_response(json.dumps(status))
response.headers['Content-Type'] = 'application/json'
return response
とはAppIdentityError: Wrong recipient
どういう意味ですか?どうすれば対処できますか?