Skip to content

Basic authentication

Paulius Mačiulis edited this page Jun 5, 2013 · 3 revisions

To setup Basic authentication for Better CMS - follow these steps:

Update Web.config:

<system.web>
  <authentication mode="Windows"/>
  <identity impersonate="true"/>
</system.web>

Update Config\cms.config file to grant access to CMS for specific windows user roles. The example below grants full access to users of Administrators group and allows edit content to users that are in Power Users group:

<security fullAccessRoles="Administrators">
    <customRoles>
      <add permission="BcmsEditContent" roles="Power Users" />
    </customRoles>
</security>

Need to mention that to enable a basic authentication same changes need be done in the IIS side:

  • Disable Anonymous Authentication for web site
  • Enable ASP.NET Impersonation for web site
  • Enable Basic Authentication for web site

More information here

Clone this wiki locally