Anyone has done ColdFusion SAML configuration with ADFS? I have a few questions regarding the CF and ADFS setup.
I have new CF2021 and ADFS both inside hyper-v...The ADFS server DNS is https://myadfs.com, The CF site is https://mycfapplication.com.
I have successfully created ADFS and linked it to AD. The question is should I be able to call the https://myadfs.com/adfs/ls/idpinitiatedsignon.aspx page from the CF server? or it is only accessible on the ADFS server? Also, do we need open any port so both servers can communicate? Any help will be appreciated
e
Ezra Christensen
09/13/2022, 3:06 PM
For SAML, ADFS would be the Identity Provider (IdP) and Coldfusion would be the Service Provider (SP).
In the IdP initiated situation, ADFS is initiating the request and sends the user to the mycfapplication URL. If the application is initiating the request, there will be a different URL for CF to send the request to.
That all happens over HTTPS/443.
h
hpeter16
09/13/2022, 4:56 PM
Thanks, Ezra...Does this process involve any certificate? Do I have to add any certificate on the CF server from ADFS or from ADFS to CF?
Right now when I do the
<cfset response = ProcessSAMLResponse("ADFS-IP","ADFS-SP")>
<cfdump var = "#response#"> I am getting "The https://test.com/ is not a valid audience for this response"
e
Ezra Christensen
09/13/2022, 5:07 PM
ADFS should provide a URL for the IdP. That includes the public certificate on that side.
In CF, the SP generates a signing key. The IdP doesn't really care about that, but the SP Entity ID must be unique, and the request must originate from the ACS, setup in CF for the SP, and registered with AD as a valid SP.
Ezra Christensen
09/13/2022, 5:09 PM
The ACS for the SP must be an https URL, which will involve a certificate as well.
Ezra Christensen
09/13/2022, 8:55 PM
for spectators, ADFS does require a cert from the SP to be imported. It's a bit different than Azure.