RDWeb with ADFS Windows server 2019/2022

Justin 0 Reputation points
2023-02-06T11:28:40.2966667+00:00

Hello, I have ADFS+AD and RDweb on two hosts Windows Server 2019. I configured RDWeb. I want to configure RDWeb login via ADFS. I installed WIF and modified web.config. But when i try to access the RDWeb i get redirected to ADFS and after authentication i get this error:

 

Microsoft.IdentityServer.Web.InvalidRequestException: MSIS7042: The same client browser session has made '6' requests in the last '1' seconds. Contact your administrator for details

 

 

Rdweb log:

w3wp.exe          Information       0             2023/02/06 14:09:49 [Verbose] 64 Page Requested : Pages, Request Type : GET.

w3wp.exe          Information       0             2023/02/06 14:09:49 [Verbose] 64 Request.RawUrl: /RDWeb/Pages

w3wp.exe          Information       0             2023/02/06 14:09:49 [Info] 64 ExtractInfoFromCookies returning : False.

w3wp.exe          Information       0             2023/02/06 14:09:49 [Info] 64 Info from Form or Auth Cookie extracted : False.

w3wp.exe          Information       0             2023/02/06 14:10:04 [Verbose] 33 Page Requested : Pages, Request Type : GET.

w3wp.exe          Information       0             2023/02/06 14:10:04 [Verbose] 33 Request.RawUrl: /RDWeb/Pages

w3wp.exe          Information       0             2023/02/06 14:10:04 [Info] 33 ExtractInfoFromCookies returning : False.

w3wp.exe          Information       0             2023/02/06 14:10:04 [Info] 33 Info from Form or Auth Cookie extracted : False.

w3wp.exe          Information       0             2023/02/06 14:10:04 [Verbose] 33 Page Requested : Pages, Request Type : GET.

w3wp.exe          Information       0             2023/02/06 14:10:04 [Verbose] 33 Request.RawUrl: /RDWeb/Pages

Web.config.xml

 web.config In attachment…

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,457 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,851 questions
Active Directory Federation Services
Active Directory Federation Services
An Active Directory technology that provides single-sign-on functionality by securely sharing digital identity and entitlement rights across security and enterprise boundaries.
1,189 questions
Remote Desktop
Remote Desktop
A Microsoft app that connects remotely to computers and to virtual apps and desktops.
4,239 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Amit Singh 4,846 Reputation points
    2023-02-07T08:54:14.3866667+00:00

    Enable the logs of the app and try to understand why it rejects the token and redirects the user to the ADFS server.

    Sometimes the token validity is too short, and sometimes there is a type on the relying party ID, sometimes it is a time difference, sometimes a wrong certificate, etc.

    0 comments No comments

  2. Justin 0 Reputation points
    2023-02-07T09:51:11.8566667+00:00

    I enabled log <add name="TraceTSWA" value="4" /> in C:\Windows\Web\RDWeb\Web.config

    I included the rdweb logs, i put them above.

    0 comments No comments