IdentityModel / AuthorizationServer

Sample implementation of an OAuth2 Authorization Server
Other
281 stars 136 forks source link

HTTP Error 401.0 - Unauthorized #213

Closed okcthulhu closed 10 years ago

okcthulhu commented 10 years ago

When I'm attempting to reach the Admin/Home area, I am denied. I stepped into the AuthorizeAdminArea method and noticed my Principal's only has a single claim with an Issuer of LOCAL_AUTHORITY. How do I add a claim that is from InternalIssuer?

Thanks!

okcthulhu commented 10 years ago

Upon further investigation, the only claim I have on the Principal is:

image

The principal type is AuthorizationServer, so did I do something incorrect with how I added AuthorizationServer to IdentityServer?

okcthulhu commented 10 years ago

I figured it out! I had accidentally set my admin on AuthenticationServer to a name different than what I put on IdentityServer. It works perfect now.