[Integration] ADFS as the Identity Provider for Adxstudio – Part 2 - Configure ADFS Server

In this article, I will detail how to enable ADFS Server to authenticate users in Adxstudio.  Please check out the Part 1 of this series which provides an overview of the solution.

[Integration] ADFS as the Identity Provider for Adxstudio – Part 1 – Overview

SSL Certificates

Before you start, make sure you have SSL certificates for ADFS, WAP, and Adxstudio.  If you are setting up development environments, you can use self-signed certificates.  To learn ow to create a self-signed certificate, please see below article.

[How To] Create a Self-Signed SSL Certificate to use with Dynamics 365 Infrastructure Setup

Enable ADFS Role

Login to ADFS server.

Open Server Manager and click on Add roles and features.

Enable ADFS 1

Click Next.

Enable ADFS 2

Click Next.

Enable ADFS 3

Click Next.

Enable ADFS 4

Select Active Directory Federation Services and click Next.

Enable ADFS 5

Click Next.

Click Next.

Select Restart the destination server automatically if required.

Enable ADFS 6

Click Yes.

Enable ADFS 7

Click Install.

Click on the Configure the federation service on this server.

Enable ADFS 8

Configure ADFS

The Active Directory Federation Services Configuration Wizard opens.

Click Next.

Configure ADFS 1

Specify an account with AD Domain admin permissions. Click Next.

Configure ADFS 2

Select the certificate for example; adfs.dyn365apps.local.

Enter Federation Service Display Name: for example Dyn365Apps Corporation

Configure ADFS 3

Ignore the warning Group managed Service Accounts are not available because KDS Root Key has not been set since a domain user account will be used as the service account.

Configure ADFS 4

Click Select… button under Use an existing domain user account.  Type svc_adfs and click Check Names.  Click OK. Note: I created a specific service account called svc_adfs to use with ADFS.

Configure ADFS 5

Enter password. Click Next.

Configure ADFS 6

If ADFS was previously configured, below error will occur.  Click Overwrite existing AD FS configuration database data check box. Click Next.

Configure ADFS 7

If you would like to view the PowerShell script, click View Script. Click Next.

Configure ADFS 8

The PowerShell script looks like below.

Click Configure.

Configure ADFS 9

If below error occurs, then there’s an issue with the certificate.

The certificate with the specified thumbprint XXXX has a Cryptography Next Generation (CNG) private key. The certificates with the CNG private key are not supported. Use a certificate based on a key pair generated by a legacy Cryptographic Service Provider.

Configure ADFS 10

Download Windows SDK and use MakeCert command to create the certificate.  Please see below article for more details.

[How To] Create a Self-Signed SSL Certificate to use with Dynamics 365 Infrastructure Setup

If below warning occurs, create the SPN manually.

An error occurred during an attempt to set the SPN for the specified service account. Set the SPN for the service account manually. For more information about setting the SPN of the service account manually, see the AD FS Deployment Guide. Error message: The SPN required for this Federation Service is already set on another Active Directory account. Choose a different Federation Service name and try again.

Configure ADFS 11

For more information, please refer to below thread.

Duplicate SPNs and ADFS

Please check out next article in the series to learn how to configure relying party trust.

[Integration] ADFS as the Identity Provider for Adxstudio – Part 3 – Configure Relying Party Trust

[Integration] ADFS as the Identity Provider for Adxstudio – Part 4 – Configure Web Application Proxy

[Integration] ADFS as the Identity Provider for Adxstudio – Part 5 – Publish an Application in Web Application Proxy

[Integration] ADFS as the Identity Provider for Adxstudio – Part 6 – Configure Adxstudio

References:

https://technet.microsoft.com/en-us/library/gg188612.aspx

https://community.adxstudio.com/products/adxstudio-portals/documentation/configuration-guide/portal-authentication/asp.net-identity-authentication/ws-federation-provider-settings/

Thank you for visiting Dyn365Apps.com.

Follow me on Twitter to get the latest news, tips and tricks and more …

Until next time…

[Integration] ADFS as the Identity Provider for Adxstudio – Part 2 – Configure ADFS Server
Tagged on:                 

Leave a Reply