Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API authorization #1551

Open
shereenbashar2 opened this issue Jun 11, 2017 · 0 comments
Open

API authorization #1551

shereenbashar2 opened this issue Jun 11, 2017 · 0 comments

Comments

@shereenbashar2
Copy link

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?

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

No branches or pull requests

1 participant