Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capability of passing request properties for config.url #765

Open
Anatoliy4041 opened this issue Apr 26, 2022 · 0 comments
Open

Capability of passing request properties for config.url #765

Anatoliy4041 opened this issue Apr 26, 2022 · 0 comments

Comments

@Anatoliy4041
Copy link

Anatoliy4041 commented Apr 26, 2022

Sometimes configs resides under urls, where some kind of URLConnection request properties configuring capability is required.
For example, if we set -Dconfig.url="https://url_here_my_config_is_residing/my_config.conf" and the server requires some kind of authentication, e.g. via Bearer token, it would return Not Found. To tackle it down, we have to set:

connection.setRequestProperty("Authorization", "Bearer ${my_token}")

However, currently, a library consumer is only able to configure accept request property (link).

@havocp and @akka-team wouldn't it be more beneficial to add a capability of passing some kind of Map request properties defined by a library consumer,
to be more flexible around configuring underlying URLConnection ? At least to configure Authorization (e.g. -Dconfig.authorization=...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant