Hello there!

Need Help? We are right here!

miniOrange Email Support

Thanks for your inquiry.

If you dont hear from us within 24 hours, please feel free to send a follow up email to info@xecurify.com

Secure Remote Desktop (RD) Gateway with Multi-factor Authentication (MFA/2FA)

Remote Desktop Gateway (RD Gateway) 2FA/MFA configuration adds additional two-factor authentication security to your RemoteApp Access logons. It also blocks connections to your RDP servers if users have not passs two-factor authentication where connection requests are proxied through a Remote Desktop Gateway. miniOrange RD gateway MFA solution let users receive 2FA prompt directly in the form of Push Notifications (Message, Email) while looging in.


A user can try to connect to RDS (Remote Desktop Services) via 2 ways :

  1. RDC - Remote Desktop Client:
    If the RemoteApp is launched through a Remote Desktop client application, the users validate their two-factor authentication (2FA) while they enter the username and password to get access to the resources. (as this method doesn't support access-challenge response, only out of band authentication methods aresupported ).
  2. RD WebAccess - RD login page via browser:
    If the desktop or RemoteApp is launched through a RD Web Login page, the initial user authentication is done from the machine's AD, after which miniOrange challenges the user for two factor authentication(2FA) via a RADIUS challenge request. After the users correctly authenticate themselves, they get connected to their resources.

RD Gateway MFA - Authentication Flow:

Two-factor authentication (2FA/MFA) for RD Gateway

  1. User Attempts to access a Remote Machine using the Remote Desktop Client with Username and Password.
  2. The Username and Password are verified against the Active Directory. (First Factor Authentication)
  3. Radius Request is sent from the RD Gateway to the Network Policy Server (NPS).
  4. Based on the policies defined in the NPS, the Radius request is forwarded to the Radius Server (miniOrange Server) for validation.
  5. miniOrange receives the Radius requests and sends an Out of Band request to the user device.
  6. User validates the Out of Band Request (Email, SMS, Push-Notification). On Success, miniOrange sends back a success response to NPS Server.
  7. NPS Server redirects it to RD Gateway.
  8. The user is granted access to the Remote Machine.

miniOrange Credential Providers can be installed on Microsoft Windows client and server operating systems to add two-factor Authentication to Remote Desktop. In this way you can get access to our 2FA solution for RD Gateway.

miniOrange supports following Authentication Methods for 2FA-

Authentication TypeMethodSupported
miniOrange Authenticator Soft Token
miniOrange Push Notification
SMSSMS with Link
EmailEmail with Link

Get Free Installation Help - Book a Slot

miniOrange offers free help through a consultation call with our System Engineers to Install or Setup Two-Factor Authentication for RD Gateway solution in your environment with 30 days trial.

For this, you need to just send us an email at idpsupport@xecurify.com to book a slot and we'll help you setting it up in no time.


Follow the Step-by-Step Guide given below to configure 2FA for RD Gateway

1. Configure RD Gateway

  • Open the RD Gateway Manager from your Start Menu.
  • Right click on your RD server in the left sidebar and click on Properties.
  • RD Gateway 2fa rdg properties

  • Select the RD CAP Store tab.
  • Select the Central server running NPS radio button and enter the IP address of miniOrange Radius Server and press Add button.
  • Enter the DNS: radius.xecurify.com in the Host and configure the Shared secret and remember this shared secret as it will be required further in the setup.
  • RD Gateway 2fa/mfa rdg properties central

  • Click the Apply button and the click on OK button.
  • Open the Network Policy Server manager.
  • Expand RADIUS Clients and Servers in the left sidebar
  • Select Remote RADIUS Server
  • Right click on TS GATEWAY SERVER GROUP and click on Properties
  • RD Gateway 2fa nps remote radius

  • Select your RADIUS server and press Edit.
  • Select the Load Balancing tab and set the timeout settings to 120 seconds
  • Remote Desktop Gateway 2fa load balance

  • Click on the Apply button and then click OK button to close the dialog
  • Expand Policies in the left sidebar and click on Connection Request Policies
  • Right click on TS GATEWAY AUTHORIZATION POLICY and click on Properties
  • Click on Settings tab and select Authentication and ensure that it’s set to Forward requests to the remote RADIUS server
  • Remote Desktop Gateway 2fa nps-crp forward

  • Click on Policies –> Network Policies.
  • RD Gateway 2fa nps network policies

  • Double click on your RDG CAP policy
  • Click on the Conditions tab
  • RD Gateway 2fa nps network policies conditions

  • Select the Called Station ID attribute and press the Edit… button
  • Set the value to UserAuthType:(PW|CA)
  • Multi-Factor authentication for RD Gateway

  • Click on the OK button and click on the Apply button

2. Add RADIUS Client in miniOrange

  • Login to miniOrange dashboard from the Admin Console.
  • Go to Apps >> Manage Apps. Click on Add Application button.
  • MFA/Two-Factor Authentication (2FA) for RD Gateway Add application

  • Choose RADIUS as Application type and click on Create App button.
  • Choose RAdius Application to configure RD Gateway MFA

  • Configure details below to add Radius Client.
  • Client Name: Any name for your reference.
    Client IP: IP address of VPN server which will send Radius authentication request.
    Shared Secret: Security key.
    For Eg. "sharedsecret"
    (Keep this with you, you will need to configure same on VPN Server).
    Include Password & OTP in same Request Keep this option Disabled
    Send Groups in Response Enable this to send user groups as Vendor-Specific Group Attributes.
  • Configure the following Policy details for the Radius App.
  • Group Name: Group for which the policy will apply.
    Policy Name: Any Identifier that specifies policy name.
    Login Method Select OTP/Push/Mobile Token (Password-Less Login).
    2FA Two-factor authentication for RD Gateway App Configured

  • Click on Save.

Step 3: Configure Second Factor for End-Users

3.1:Configure Branding from miniOrange Admin Dashboard.

  • From your miniOrange Dashboard in the left navigation bar, select Customization, click on Login and Registration Branding.

  • Select Login and Registration Branding for RD Gateway Two-Factor authentication

  • Configure the Organization Name accordingly. For Eg:mysso
  • You can customize the End-User Login Page according to your choice.
  • Once configure, scroll down and click on Save
  • Your End-User login link should be updated under Login Page URL
  • Navigate to 2-Factor Authetication, select 2FA Options for End-User
  •  Select Two factor-authentication for End-User

    Note: We only support Out of Band methods for MFA over RD Gateway.
    Eg. SMS Link, Email Link etc.

  • Under SELECT 2FA METHODS ALLOWED TO BE SHOWN TO ENDUSERS, select only the Link notification Methods
  • Click on Save

3.2: Configure 2FA for Users of RD Gateway.

  • Endusers can login to the End-User Portal using the Login Page URL
  • Once the End-User is logged in, Click on Configure 2FA from the left pane.
  • Here the End-User is provided the option to select the Out of Band Notification Method of his choice.
  • Two factor-authentication for RD Gateway select End-User 2FA method

  • Here we have configured SMS Link as a 2FA method for an example.

4. Test your RD Gateway 2FA Setup

  • Open Remote Desktop settings. Go to the Advanced tab and click on Settings. Choose the radio button which says, Use these RD Gateway Settings
  • RD Gateway 2fa Test

  • Enter your Computer Name/Address and the User Name.
  • Enter username for RD Gateway multi-factor authentication

  • Enter the Password for RD Gateway.
  • RD Gateway 2fa Password

  • You will receive a Notification or message. If you Accept it, then you will be logged in successfully to your Windows RD Gateway .

External References

Our Other Identity & Access Management Products