ServiceStack version 5.0.2.
I am using the ServiceStack.Authentication.Aad nuget package (well, I pulled the source down from GitHub and I am using it directly since it has not been updated to support SSv5. Anyway, I have setup a web application in Azure and gotten my clientID and client secret. When I attempt to get a token in Postman, it succeeds. However, if I attempt to use the token to authenticate into my api I get a 401 error. I am sure it is a configuration item at this point, but I have been staring at it for 2 weeks now. Any help is most appreciated!
Web.config values:
ApplicationHost.Configure:
// Store users in memory for testing
container.Register(new MemoryCacheClient());
var userRep = new InMemoryAuthRepository();
container.Register(userRep);
Plugins.Add(new SessionFeature());
var appSettings = new AppSettings();
var authProviders = new IAuthProvider[]
{
new AadAuthProvider(appSettings),
//new BasicAuthProvider() ,
//new PrxAzureADOAuthProvider(appSettings),
//new OpenIdOAuthProvider(appSettings),
};
Plugins.Add(new AuthFeature(
() => new AuthUserSession(),
authProviders,
htmlRedirect: "/auth/aad"));