Last post Mar 25, 2019 06:43 AM by Xing Zou
Mar 20, 2019 06:20 PM|Aslee|LINK
I am creating an API with the 2.2 kernel of asp.net.
I have two services (SOAP and REST) and the problem is that I want the SOAP service to be anonymous and the REST service be integrated windows
Mar 20, 2019 07:10 PM|mgebhard|LINK
Your question is a little unclear. I think you mean ASP.NET Core 2.2.
I have two services (SOAP and REST) and the problem is that I want the SOAP service to be anonymous
There are no built in SOAP services in ASP.NET Core like WCF and ASMX found ASP.NET. However, you can build your own.
You don't have to do anything to make the service anonymous.
and the REST service be integrated windows
This is a little odd but doable. The ASP.NET Core documentation cover the details.
A standard approach is using a token sever/end point to exchange a Windows Auth for a token. The client passes the token to the REST service (Web API) .
Mar 20, 2019 07:37 PM|bruce (sqlwork.com)|LINK
you just configure IIS & core for windows authentication. Then only add [Authorize] to the rest apis. as suggested, you will need a soap library as asp.net core does not have builtin support.
Mar 25, 2019 06:43 AM|Xing Zou|LINK
For integrating windows authentication with REST service(asp.net core web api), you could refer to below link which works with IIS and windows authentication.
The configuration state of anonymous access determines the way in which the [Authorize] and [AllowAnonymous] attributes are used in the app: