BetterCMS icon indicating copy to clipboard operation
BetterCMS copied to clipboard

API authorization

Open shereenbashar2 opened this issue 8 years ago • 0 comments

I Change Configuration to forbidden anonymous user access to API bur now i can't call web api in postman to test it.

    <allow verbs="GET,POST,PUT,DELETE" roles="BcmsAdministration"/>
    <deny  users="*"/>
  </authorization>
</system.web>
<!-- Required for IIS 7.0 -->
<system.webServer>
  <modules runAllManagedModulesForAllRequests="true" />
  <validation validateIntegratedModeConfiguration="false" />
  <handlers>
    <add path="bcms-api*" name="ServiceStack.Factory" type="ServiceStack.WebHost.Endpoints.ServiceStackHttpHandlerFactory, ServiceStack" verb="*" preCondition="integratedMode" resourceType="Unspecified" allowPathInfo="true" />
  </handlers>
</system.webServer>

How can i connect to web api with authorization?

shereenbashar2 avatar Jun 11 '17 12:06 shereenbashar2