Get user's identity but still allow anonymous access
Hello, i'm creating a website that allows anyone to connect, but if they are in an AD group, the home page shows additional edit buttons in my js.
Right now on IIS, i have Windows and Anonymous authentication on. If I leave the index controller without an authentication tag, i can't get the users' identity. If I [Authorize], then anonymous connections can't be made. Anyone know how to do this? Thanks
0 comments:
Post a Comment