I am struggling to get OpenID Connect to work on .NET 8. Can someone post a full example of how it works? I keep getting remote login failure. I have an API controller which I decorated with [Authorize]
. Any help appreciated. I am migrating from .NET 4x to .NET 8 (still a little new to all the syntax).
I want to authorize and authenticate user using API – there is no client login page involved. I have authority, clientid and secret I keep running into remote failure message state is empty or null
I have tried everything on the net, even tried jwtbearer. I have added UseAuthentication
and UseAuthorization
after UseRouting
. I just want this on controller to use [Authorize]
attribute and I want to be able to read the user and get claim information which is all null or 0
user25457542 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.