The Microsoft Default Identity did not fit my project needs so i had to write a custom filter to handle authentication. I do allow users to use Azure Active Directory, by storing a reference table with the ActiveDirectory User Id, and their user id in my system.
I really had to hack things to make it work in regular .NET. I've now switched my system to .Net Core web api Mvc and many of my libraries and syntax's did not translate.
Code Examples below:
public void SignIn() {
HttpContext.GetOwinContext().Authentication.Challenge(new
AuthenticationProperties { RedirectUri = "/" },
OpenIdConnectAuthenticationDefaults.AuthenticationType);
}
I just want to reference azure AD, I can sign in a user using .net core, but can't get any details about the user. I was using azure graph in the past.
How can I do this with out using the Microsoft Identity?