I am new to ASP.NET CORE application, and i would like your help. Basically I have designed a new ASP .NET core 5.0 web (MVC) application.
I need to use a third-party in-house authentication. The instructions on how to implement the third-party authentication are as follows.
Step1: Check for Cookie
Step2: Validate Cookie
- The third-party application/web service sets the cookie. This application would be on the same domain as the asp.net core application
- Validation of the cookie value/token is done by a WCF call to the third-part service, it also supports REST.
- the tokenObj would also contain information on the roles of the logged in user for the specific asp.net core application. How do i go about implementing this in the Authorization model ?
Summary: The ASP.NET Core MVC application does not perform any authentication or take the users credentials. As per instructions it should simply check for a specific cookie, if cookie not present re-direct to 3rd party app for login, if cookie present, then validate against the web service, which would provide details of the user, including roles.
I have read a few articles on cookie validation and claims identity, but I am a bit confused as to how to implement this procedure the correct way in ASP.net core.
Any help would be greatly appreciated.