Skip to content

Add a way to secure paths by regex#1

Open
freakingawesome wants to merge 1 commit intohexasoftuk:masterfrom
freakingawesome:master
Open

Add a way to secure paths by regex#1
freakingawesome wants to merge 1 commit intohexasoftuk:masterfrom
freakingawesome:master

Conversation

@freakingawesome
Copy link

As an alternative to securing the entire site, you can specify a regular expression to match against the URL Path by replacing the "BasicAuthentication.Required" appSetting with something like the following:

<add key="BasicAuthentication.RequiredOnPathRegex" value="^\/my-protected-path" />
<add key="BasicAuthentication.RequiredOnPathRegex.IgnoreCase" value="true" />

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

Comments