lukecwik commented on PR #23569: URL: https://github.com/apache/beam/pull/23569#issuecomment-1278277488
> > For a simple improvement, we could make a pipeline option that each user can configure with the existing scopes being the default? > > FWIW this is straightforward. `pipeline_options` are available in both places `CLIENT_SCOPES` is currently used. we can add, for example an option `--custom_oauth_scopes` , that will store semicolon-separated strings here: > > https://github.com/apache/beam/blob/2d84233009ffe7488649efbb0acdfb9fea7fdf31/sdks/python/apache_beam/options/pipeline_options.py#L767 > > We can add the contents of that option the the default scopes currently hardcoded. > > Note: it is sufficient to do this just for Python, Java already has a capability to create and supply custom credentials. Can we use a list type instead of using semi-colons as pipeline_options.py supports lists already? Having an equivalent in Java is convenient so that the user experience is the same. This will also help with xlang so that those additional scopes can be specified for IO reasons. Also suggest `--oauth_scopes` instead of `--custom_oauth_scopes` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
