Skip to content

Feature Request: Ability to specify an OAuth audience to InstalledAppFlow.run_local_server #299

@keriwarr

Description

@keriwarr

Is your feature request related to a problem? Please describe.

I'm using Google's Identity Aware Proxy to provide an OAuth layer. When programmatically accessing an IAP protected resource, one is expected to provide a specific audience to the call to get an access token (source). AFAICT This is not currently possible with InstalledAppFlow.run_local_server

Describe the solution you'd like

A new argument to run_local_server that passes the audience through to the fetch_token call

Describe alternatives you've considered

not aware of any alternatives

Additional context

I've got this setup working internally with a live IAP application, having copied the body of run_local_server and modified it as above.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions