Enable self-signed JWT flow for v1beta2
busunkim96 opened this issue · 1 comments
Documentai uses a regional host (us-documentai.googleapis.com
) as the default for v1beta2 so self-signed JWT cannot be used for v1beta2.
When the host is defined as documentai.googleapis.com
re-enable the self-signed JWT flow.
For more context, see this doc(specifically "Handling of Regional Endpoints as the default host")
documentai
used to listus-documentai.googleapis.com
as the default endpoint for all of its versions. self-signed JWT needs to always use the global endpoint as the audience.
The default endpoint was changed to documentai.googleapis.com
in this commit for documentai v1 and documentai v1beta3. An update to the documentai v1beta2 protos will allow the customizations in owlbot.py
to also be removed.
Lines 39 to 60 in e1e8fce