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

RFC6717 conformancy #112

Merged
merged 10 commits into from
Dec 6, 2022
Merged

RFC6717 conformancy #112

merged 10 commits into from
Dec 6, 2022

Conversation

Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Nov 29, 2022

Changes:
removing basic-auth-package
Sending by default the auth-token charset="UTF-8".
Checking for control characters in user-id and password (lacking in basic-auth-package)
adding a strictCredentials options as basic-auth implemented actually the credentials schema wrong. BWS is not in the ABNF schema of the credentials schema. BWS is extended to also cover tab.

Checklist

@Uzlopak Uzlopak requested review from mcollina, delvedor, Fdawgs, climba03003, Eomm and jsumners and removed request for mcollina and delvedor November 29, 2022 14:28
README.md Outdated Show resolved Hide resolved
Co-authored-by: James Sumners <[email protected]>
index.js Show resolved Hide resolved
@Uzlopak
Copy link
Contributor Author

Uzlopak commented Nov 29, 2022

Based on using autocannon on the example.js I can determine that the performance did not degrade on invalid and valid credentials.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Co-authored-by: Manuel Spigolon <[email protected]>
@Uzlopak
Copy link
Contributor Author

Uzlopak commented Nov 29, 2022

I could set strictCredentials default to false, if you worried about releasing a major after a short time?
Then it would be only a minor version change i think.

Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@Uzlopak Uzlopak merged commit 330e6fb into master Dec 6, 2022
@Uzlopak Uzlopak deleted the rfc6717-conformancy branch December 6, 2022 11:24
renovate bot referenced this pull request in tomacheese/telcheck Oct 31, 2023
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@fastify/basic-auth](https://togithub.com/fastify/fastify-basic-auth)
| [`5.0.0` ->
`5.1.0`](https://renovatebot.com/diffs/npm/@fastify%2fbasic-auth/5.0.0/5.1.0)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@fastify%2fbasic-auth/5.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@fastify%2fbasic-auth/5.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@fastify%2fbasic-auth/5.0.0/5.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@fastify%2fbasic-auth/5.0.0/5.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>fastify/fastify-basic-auth
(@&#8203;fastify/basic-auth)</summary>

###
[`v5.1.0`](https://togithub.com/fastify/fastify-basic-auth/releases/tag/v5.1.0)

[Compare
Source](https://togithub.com/fastify/fastify-basic-auth/compare/v5.0.0...v5.1.0)

#### What's Changed

- add example by [@&#8203;Uzlopak](https://togithub.com/Uzlopak) in
[https://github.com/fastify/fastify-basic-auth/pull/111](https://togithub.com/fastify/fastify-basic-auth/pull/111)
- build(deps-dev): bump tsd from 0.24.1 to 0.25.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/fastify/fastify-basic-auth/pull/113](https://togithub.com/fastify/fastify-basic-auth/pull/113)
- RFC6717 conformancy by [@&#8203;Uzlopak](https://togithub.com/Uzlopak)
in
[https://github.com/fastify/fastify-basic-auth/pull/112](https://togithub.com/fastify/fastify-basic-auth/pull/112)
- chore(.gitignore): add clinic by
[@&#8203;Fdawgs](https://togithub.com/Fdawgs) in
[https://github.com/fastify/fastify-basic-auth/pull/114](https://togithub.com/fastify/fastify-basic-auth/pull/114)
- chore(.gitignore): add bun lockfile by
[@&#8203;Fdawgs](https://togithub.com/Fdawgs) in
[https://github.com/fastify/fastify-basic-auth/pull/115](https://togithub.com/fastify/fastify-basic-auth/pull/115)
- build(deps-dev): bump tsd from 0.25.0 to 0.26.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/fastify/fastify-basic-auth/pull/116](https://togithub.com/fastify/fastify-basic-auth/pull/116)
- build(deps-dev): bump tsd from 0.26.1 to 0.27.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/fastify/fastify-basic-auth/pull/117](https://togithub.com/fastify/fastify-basic-auth/pull/117)
- build(deps-dev): bump tsd from 0.27.0 to 0.28.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/fastify/fastify-basic-auth/pull/118](https://togithub.com/fastify/fastify-basic-auth/pull/118)
- ci: only trigger on pushes to main branches by
[@&#8203;Fdawgs](https://togithub.com/Fdawgs) in
[https://github.com/fastify/fastify-basic-auth/pull/119](https://togithub.com/fastify/fastify-basic-auth/pull/119)
- build(deps-dev): bump
[@&#8203;types/node](https://togithub.com/types/node) from 18.16.5 to
20.1.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/fastify/fastify-basic-auth/pull/120](https://togithub.com/fastify/fastify-basic-auth/pull/120)
- build(deps-dev): bump tsd from 0.28.1 to 0.29.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/fastify/fastify-basic-auth/pull/121](https://togithub.com/fastify/fastify-basic-auth/pull/121)
- perf: use `node:` prefix to bypass require.cache call for builtins by
[@&#8203;Fdawgs](https://togithub.com/Fdawgs) in
[https://github.com/fastify/fastify-basic-auth/pull/122](https://togithub.com/fastify/fastify-basic-auth/pull/122)
- chore: add `.gitattributes` file by
[@&#8203;Fdawgs](https://togithub.com/Fdawgs) in
[https://github.com/fastify/fastify-basic-auth/pull/124](https://togithub.com/fastify/fastify-basic-auth/pull/124)
- chore(package): explicitly declare js module type by
[@&#8203;Fdawgs](https://togithub.com/Fdawgs) in
[https://github.com/fastify/fastify-basic-auth/pull/125](https://togithub.com/fastify/fastify-basic-auth/pull/125)

**Full Changelog**:
fastify/fastify-basic-auth@v5.0.0...v5.1.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/tomacheese/telcheck).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS41IiwidXBkYXRlZEluVmVyIjoiMzcuMzEuNSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->

Co-authored-by: renovate[bot] <29139614+renovate[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.

5 participants