Skip to content

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