Skip to content

Commit

Permalink
(GH-21) Provide auth instructions
Browse files Browse the repository at this point in the history
Update the instructions to give all steps required to turn on basic
auth using the HttpAuth module. With the simplifications it could be a
matter of two touchpoints in the config file to be protected.
  • Loading branch information
ferventcoder committed Jan 11, 2018
1 parent 6d7c5cd commit df1fd04
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/SimpleChocolateyServer/Web.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
<section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah" />
</sectionGroup>
</configSections>
<!-- To turn on basic auth with the HttpAuth Module, perform the following:
- Set up your users in the credentials section below.
- In system.web/authorization (section after httpAuth), find the allow
without verbs and change the word "allow" to "deny". Leave the allow
with 'verbs="PUT,POST"' alone or you won't be able to push packages.
-->
<httpAuth mode="Basic" realm="Chocolatey Simple Server">
<!-- The above values have been tested to work. Possible values you can
set (with no guarantees or support):
Expand Down
6 changes: 6 additions & 0 deletions src/SimpleChocolateyServer/Web.config.install.xdt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
<section name="httpAuth" type="HttpAuth.Configuration.HttpAuthSection,HttpAuthenticationModule" xdt:Locator="Match(name)" xdt:Transform="InsertIfMissing" />
</configSections>
<httpAuth mode="Basic" realm="Chocolatey Simple Server" xdt:Transform="InsertIfMissing">
<!-- To turn on basic auth with the HttpAuth Module, perform the following:
- Set up your users in the credentials section below.
- In system.web/authorization (section after httpAuth), find the allow
without verbs and change the word "allow" to "deny". Leave the allow
with 'verbs="PUT,POST"' alone or you won't be able to push packages.
-->
<!-- The above values have been tested to work. Possible values you can
set (with no guarantees or support):
- Mode - {None|Basic|Digest}
Expand Down

0 comments on commit df1fd04

Please sign in to comment.