Disable ACS

Category: azure security

Question

Rami_kel on Fri, 24 Aug 2012 12:18:41


Hi, i'm using ACS in my WebApi project

when i try to open any page , i'm redirected to the authetication page (liveId, yahoo or gmail)

i want to disable the authentication for some pages or controllers

is-it possible?

Thx

Replies

Neil Mackenzie on Fri, 24 Aug 2012 23:59:40


The Identity Training Course (downloadable Kit) has an example showing how to use the Location and Authorization elements in web.config to have differentiated access:

<location path="SecretPage.aspx">
    <system.web>
      <authorization>
        <allow roles="Manager"/>
        <deny users="*"/>
      </authorization>
    </system.web>
  </location>

Carlos Sardo on Sat, 25 Aug 2012 11:34:15


Hi Rami_kel,

For MVC you also have the AuthorizeAttribute Class. Therefore, you could decorate your Controller or Actions with:

[Authorize(Roles="*")]

[Authorize(Users = "*")]

Hope this helps!

Rami_kel on Mon, 22 Oct 2012 09:58:27


is it possible to remove this method of authentication?

i want to use my private login page , how to disable ACS??