cloudendpoints / endpoints-python

A Python framework for building RESTful APIs on Google App Engine
Apache License 2.0
51 stars 17 forks source link

Handle audiences dict properly for service account auth #170

Closed inklesspen closed 5 years ago

inklesspen commented 6 years ago

https://github.com/cloudendpoints/endpoints-python/blob/21d7e9753a9ba0b26c2380171d33cd338e2fcb08/endpoints/users_id_token.py#L222-L223

Sometimes, audiences is a dict with issuers as keys and audiences as values. When this happens, we need to determine the active issuer and select the appropriate value. We can't do this if we don't pass the real issuers in.