Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions include/aws/auth/credentials.h
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,11 @@ struct aws_credentials_provider_x509_options {
*/
const struct aws_http_proxy_options *proxy_options;

/**
* (Optional) Socks5 proxy configuration for the http request that fetches credentials
*/
const struct aws_socks5_proxy_options *socks5_proxy_options;

/* For mocking the http layer in tests, leave NULL otherwise */
struct aws_auth_http_system_vtable *function_table;
};
Expand Down Expand Up @@ -525,6 +530,11 @@ struct aws_credentials_provider_sts_options {
*/
const struct aws_http_proxy_options *http_proxy_options;

/**
* (Optional) Socks5 proxy configuration for the http request that fetches credentials
*/
const struct aws_socks5_proxy_options *socks5_proxy_options;

/**
* (Optional)
* Uses a cached config file profile collection (~/.aws/config). You can also pass a merged profile collection,
Expand Down Expand Up @@ -722,6 +732,11 @@ struct aws_credentials_provider_cognito_options {
*/
const struct aws_http_proxy_options *http_proxy_options;

/**
* (Optional) Socks5 proxy configuration for the http request that fetches credentials
*/
const struct aws_socks5_proxy_options *socks5_proxy_options;

/* For mocking the http layer in tests, leave NULL otherwise */
struct aws_auth_http_system_vtable *function_table;

Expand Down
1 change: 1 addition & 0 deletions source/credentials_provider_cognito.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ struct aws_credentials_provider *aws_credentials_provider_new_cognito(
manager_options.shutdown_complete_user_data = provider;
manager_options.tls_connection_options = &tls_connection_options;
manager_options.proxy_options = options->http_proxy_options;
manager_options.socks5_proxy_options = options->socks5_proxy_options;

impl->function_table = options->function_table;
if (impl->function_table == NULL) {
Expand Down
1 change: 1 addition & 0 deletions source/credentials_provider_sts.c
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,7 @@ struct aws_credentials_provider *aws_credentials_provider_new_sts(
.socket_options = &socket_options,
.tls_connection_options = &tls_connection_options,
.proxy_options = options->http_proxy_options,
.socks5_proxy_options = options->socks5_proxy_options,
};

impl->connection_manager =
Expand Down
1 change: 1 addition & 0 deletions source/credentials_provider_x509.c
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ struct aws_credentials_provider *aws_credentials_provider_new_x509(
manager_options.shutdown_complete_user_data = provider;
manager_options.tls_connection_options = &impl->tls_connection_options;
manager_options.proxy_options = options->proxy_options;
manager_options.socks5_proxy_options = options->socks5_proxy_options;

impl->function_table = options->function_table;
if (impl->function_table == NULL) {
Expand Down