Before you install the connector Dynamics 365(CRM On-Premise) you will need to configure ADFS.
1.Log into your ADFS server and run PowerShell as an admin.
2.Register the Popdock application ADFS.
Add-AdfsClient -Name “Popdock for Dynamics CRM” -ClientId “15f97ff8-2f65-4fa1-be88-f3fd0fcae12e” -RedirectUri “https://eoneconnectorauth.azurewebsites.net/Callback”
3.Configure CRM to issue refresh tokens. (to get the name of your CRM you can run “Get-AdfsRelyingPartyTrust | Format-List -Property Name, Identifier” and find it in the list.
Set-AdfsRelyingPartyTrust -TargetName “Your CRM’s relying trust name” -IssueOAuthRefreshTokensTo AllDevices
4.Set the token lifetime in minutes.
Set-AdfsProperties -SSOLifetime 48000
5.Set the refresh token lifetime in minutes.
Set-AdfsProperties -PersistentSsoLifetimeMins 2628000