Skip to content

feat: Extract JWT from cookie#314

Merged
spencewenski merged 3 commits into
mainfrom
jwt-cookie
Aug 4, 2024
Merged

feat: Extract JWT from cookie#314
spencewenski merged 3 commits into
mainfrom
jwt-cookie

Conversation

@spencewenski

Copy link
Copy Markdown
Member

If the BearerAuthHeader header is missing, attempt to get the JWT from the AUTHORIZATION header. If the JWT is not available from either source, reject the response with an "unauthorized" response.

If the `BearerAuthHeader` header is missing, attempt to get the JWT from
the `AUTHORIZATION` header. If the JWT is not available from either
source, reject the response with an "unauthorized" response.
@codecov

codecov Bot commented Aug 4, 2024

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 2.94118% with 33 lines in your changes missing coverage. Please review.

Project coverage is 47.54%. Comparing base (ef4ca6c) to head (9cb613e).

Files Patch % Lines
src/middleware/http/auth/jwt/mod.rs 0.00% 23 Missing ⚠️
src/error/axum.rs 0.00% 6 Missing ⚠️
src/error/auth.rs 0.00% 3 Missing ⚠️
src/middleware/http/auth/jwt/openid.rs 0.00% 1 Missing ⚠️
Files Coverage Δ
src/config/auth/mod.rs 100.00% <ø> (ø)
src/middleware/http/auth/jwt/ietf.rs 100.00% <100.00%> (ø)
src/middleware/http/auth/jwt/openid.rs 50.00% <0.00%> (ø)
src/error/auth.rs 30.00% <0.00%> (-12.86%) ⬇️
src/error/axum.rs 0.00% <0.00%> (ø)
src/middleware/http/auth/jwt/mod.rs 33.82% <0.00%> (-15.12%) ⬇️

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ef4ca6c...9cb613e. Read the comment docs.

@spencewenski
spencewenski merged commit 67b58d7 into main Aug 4, 2024
@spencewenski
spencewenski deleted the jwt-cookie branch August 4, 2024 23:05
@github-actions github-actions Bot mentioned this pull request Aug 4, 2024
spencewenski pushed a commit that referenced this pull request Aug 4, 2024
## 🤖 New release
* `roadster`: 0.5.15 -> 0.5.16

<details><summary><i><b>Changelog</b></i></summary><p>

<blockquote>

##
[0.5.16](roadster-v0.5.15...roadster-v0.5.16)
- 2024-08-04

### Added
- Extract JWT from cookie
([#314](#314))
- Derive `OperationIo` for `Jwt` struct
([#311](#311))
- Change user.last_sign_in_at column to non-null with default
([#312](#312))

### Other
- Add pre-commit hook to check formatting
([#313](#313))
</blockquote>


</p></details>

---
This PR was generated with
[release-plz](https://github.com/MarcoIeni/release-plz/).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

1 participant