ADFS web server setup - c#

I am very very new to ADFS 2.0, i have been using Domain trust and i am doing some research on ADFS 2.0 to convert my current web app to ADFS 2.0, question i have is
Does the Web server needs to be on a perimeter network facing internet? or i can use web proxy or if federation proxy supports that built in for web server too.
Does my SSL cert needs to be on my IIS or i can host it on my load balancer?
Also do i need to have .net 3.0 and above to use adfs with asp.net?

For ADFS, you can install an ADFS proxy that is accessible to the Internet. This communicates with an instance of ADFS which can be behind a firewall.
ADFS requires a "Service communications" certificate which typically uses the SSL certificate of the IIS that hosts ADFS.
I detailed the WIF requirements in my other answer to you.
ADFS requires Microsoft .NET Framework 3.5 together with Service Pack 1.

Related

How to get WCF Interface Version of UserNameAuthenticaton

I have a WCF server/client structure, which gets a new way for authentication.
serviceHost.Credentials.UserNameAuthentication.UserNamePasswordValidationMode = UserNamePasswordValidationMode.Custom;
There are two versions:
Server Version 1.0 Supports Authentication 1.0
Server Version 2.0 Supports Authentication 2.0
Both Server Versions supports username and password. The client needs to know, which user should be used. The new client should support both Authentication methods.
Client 2.0 --> Server 1.0
Client 2.0 --> Server 2.0
Is there any information available, to get the service version of the server before the authentication process? The client should select the compatible method depended on the version of the server.
One idea was to use a mex data with the version infos inside the url.
A service's endpoint identity is a value generated from the service Web Services Description Language : WSDL. This value, propagated to any client, is used to authenticate the service.
You can verify communication in this way, as you can see for examples.

How to configure Application side in WCF App for SSL connection with Pre Configured ADFS server?

I'm trying to configure my application so it authorises using ADFS server. I have configured ADFS server. In my Solution file(which is combination of WF, WPF projects and WCF) I have multiple no. of projects, I am using visual studio 2017. One project is client and another is server. Client is supposed to send authentication request to ADFS and receive token, which is sent to server side of my solution, where user is authorised to use application. Now my question is how do I configure it? Microsoft's documentations are using Identity and Access tool which is not supported in VS17. Is there any tutorial or legit guide/documentation which I can follow to configure my application.

Windows authentication across untrusted domains

I'm developing an ASP.NET Web API which implements also an Identity provider using Identity Server. The requirement is to support Windows Authentication via Active Directory, and also Custom credentials.
All these requirements are achievable. An extra requirement is to support Win Auth from different untrusted domains.
Recap:
Three untrusted domain (A, B, C)
the ASP.net Core service runs (using HTTP.SYS and not behind IIS) on a server joined to domain A
a user from domain B wants to login using Windows Authentication (preferable SSO) using domainB\userB
I've googled and it doesn't seem possible.
It's an option to migrate to Kestrel 3.0, but Microsoft says here
In ASP.NET Core 3.0, Kestrel has the ability to use Negotiate, Kerberos, and NTLM on Windows, Linux, and macOS for Windows domain-joined hosts
so supports only domain joined hosts.
My understanding is that LDAP could support untrusted domains, is this true?
Thanks,

Is it possible to configure the forwarding of a kerberos from Nginx to kestrel aspnet core

I want to deploy an ASP.NET Core application in Linux with Windows authorization.
I understand approximately what I need to configure, for example, nginx as a reverse proxy server that will forward Kerberos to Kestrel. But I don’t understand if Kestrel can accept kerberos tokens or how it needs to be configured for this scheme to work?
For IIS we need add this:
services.AddAuthentication(IISDefaults.AuthenticationScheme)
No official support (90% sure)
Base on :
Configure Windows Authentication in ASP.NET Core | Microsoft Docs
HTTP.sys web server implementation in ASP.NET Core | Microsoft Docs
Notice :
Windows Authentication can be configured for ASP.NET Core apps hosted with IIS or HTTP.sys.
Windows Authentication relies on the operating system to authenticate users of ASP.NET Core apps.
IIS and HTTP.sys only runs on Windows
Possible Workaround
Use Identity Server
See iis - How to implement Windows Authentication with IdentityServer 4 - Stack Overflow

Single Sign On (SSO) via 3rd party ADFS using ASP.NET WebForms

We have a webforms (.net 4.5) application which uses membership for user authentication which we host ourselves. Our clients have Active Directory and ADFS which they host in their own networks, they require our software to use single sign on authenticating against their ADFS server. I'm looking for steps on how to implement this so we can continue to use our normal membership login but use SSO where available.
There's a lot of info out there and I honestly don't know where to start. Cheers.
I wrote up something very similar to this:
OWIN : ASP.NET MVC application with multiple authentication options
Basically, use the OWIN Identity stacks to support whatever protocols you want.
Note that this application (RP in ADFS speak) still needs to be configured on the ADFS side.

Categories