Skip to content

[Feature request] Provide option to configure the HTTPX AsyncClient #264

@Kilo59

Description

@Kilo59

Describe the feature you'd like

I'd like to be able to customize the config for the HTTPX AsyncClient used to load the openid config (or any other HTTPX clients that are making external requests).
https://github.com/intility/fastapi-azure-auth/blob/main/fastapi_azure_auth/openid_config.py#L75

I am in a locked down environment where I need to be able to set the a custom SSL cert.
https://www.python-httpx.org/advanced/ssl/#working-with-ssl_cert_file-and-ssl_cert_dir

Additional context

My initial idea is to allow the OpenIdConfig class constructor to take parameter object that is then passed to the created AsyncClient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions