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

caddyauth: Rename basicauth to basic_auth #6092

Merged
merged 1 commit into from
Feb 12, 2024
Merged

Conversation

francislavoie
Copy link
Member

This allows basic_auth to work as well in the Caddyfile, and emits a deprecation warning when basicauth is used.

This was essentially a mistake in v2.0, we made the decision to use underscores for directives that are multiple words like file_server etc, but we left basicauth. Since then, we've added forward_auth, so basicauth feels incongruent with that.

I think now's as good a time as any to realign this.

@francislavoie francislavoie added the feature ⚙️ New feature or request label Feb 10, 2024
@francislavoie francislavoie added this to the v2.8.0 milestone Feb 10, 2024
Copy link
Member

@mholt mholt left a comment

Choose a reason for hiding this comment

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

"Angry upvote" 😆

(Mainly because I'm kicking myself for that inconsistency when v2 launched)

This allows `basic_auth` to work as well in the Caddyfile, and emits a deprecation warning when `basicauth` is used.
@francislavoie francislavoie enabled auto-merge (squash) February 12, 2024 17:34
@francislavoie francislavoie merged commit f9e1115 into master Feb 12, 2024
25 checks passed
@francislavoie francislavoie deleted the rename-basicauth branch February 12, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature ⚙️ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants