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

[#1095]: Implement basic_auth for WASM #1096

Merged
merged 1 commit into from May 30, 2022

Conversation

ctron
Copy link
Contributor

@ctron ctron commented Nov 30, 2020

No description provided.

@nexplor
Copy link

nexplor commented Oct 15, 2021

Hi @seanmonstar, can this PR be merged? Having basic_auth on x86 but not wasm is just a pointless paper cut.

@Foorack
Copy link

Foorack commented Dec 1, 2021

I painfully ran into this today. Can this please be merged? @seanmonstar

@Foorack
Copy link

Foorack commented Dec 1, 2021

@ctron It says it has merge conflicts, would it be possible to resolve please?

Signed-off-by: Jens Reimann <jreimann@redhat.com>
@ctron
Copy link
Contributor Author

ctron commented Dec 1, 2021

@ctron It says it has merge conflicts, would it be possible to resolve please?

Should be done.

Copy link

@Foorack Foorack left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can confirm this PR works as expected. cc/ @seanmonstar

Running against latest release, my software fails to compile with Trunk or (cargo build --target wasm32-unknown-unkown). But running against this branch, Trunk successfully compiles.

EstebanBorai added a commit to EstebanBorai/github-api-proxy-worker that referenced this pull request Dec 26, 2021
Implements Basic Authentication to authenticate requests against
GitHub's API. Uses the [`http-auth-basic`][1] crate to create a HTTP
header value for `Authorization` header using environment variables.
This approach is likely to be replaced by using the:
`reqwest::RequestBuilder::basic_auth` method which is [a wip][2].

[1]: https://crates.io/crates/http-auth-basic
[2]: seanmonstar/reqwest#1096
EstebanBorai added a commit to EstebanBorai/github-api-proxy-worker that referenced this pull request Dec 26, 2021
Implements Basic Authentication to authenticate requests against
GitHub's API. Uses the [`http-auth-basic`][1] crate to create a HTTP
header value for `Authorization` header using environment variables.
This approach is likely to be replaced by using the:
`reqwest::RequestBuilder::basic_auth` method which is [a wip][2].

[1]: https://crates.io/crates/http-auth-basic
[2]: seanmonstar/reqwest#1096
EstebanBorai added a commit to EstebanBorai/github-api-proxy-worker that referenced this pull request Dec 26, 2021
Implements Basic Authentication to authenticate requests against
GitHub's API. Uses the [`http-auth-basic`][1] crate to create a HTTP
header value for `Authorization` header using environment variables.
This approach is likely to be replaced by using the:
`reqwest::RequestBuilder::basic_auth` method which is [a wip][2].

[1]: https://crates.io/crates/http-auth-basic
[2]: seanmonstar/reqwest#1096
@ctron
Copy link
Contributor Author

ctron commented Apr 11, 2022

Not sure why this doesn't get merged. Some feedback on that would be nice @seanmonstar

In the meantime, I crated an ext crate, which allows one to work around this: https://github.com/ctron/reqwest-wasm-ext

The downside is that dependent crates, like openid don't make use of this of course. But least for your own code, this can be done.

@46bit
Copy link

46bit commented May 30, 2022

Painfully hit this today. Please merge.

@seanmonstar seanmonstar merged commit 28840af into seanmonstar:master May 30, 2022
@seanmonstar
Copy link
Owner

Sorry the radio silence, and thanks for constantly reminding me, hopefully this should help a lot of people <3

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

Successfully merging this pull request may close these issues.

None yet

5 participants