Share via

HRD undefined error for automatic redirection through Onload.js ADFS

Anonymous
2018-12-03T11:17:54+00:00

Hello Team,

We are trying to setup automatic redirection after the ADFs page to prompt 2FA. However we edited the onload.js file on ADFS 3.0 same has been imported. When we are configuring the outlook get an error HRD undefined error.

Is this something we are missing from ADFS HRD prospective?

Microsoft 365 and Office | Subscription, account, billing | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

10 answers

Sort by: Most helpful
  1. Anonymous
    2018-12-04T13:50:50+00:00

    Hello AndyTech21,

    Thanks for posting here. We can't share the sample code with you because we don't focus on the coding. Sorry about that. But we strongly recommend you post your query here to chat with the dedicated support team.

    Meanwhile, we welcome you post back if you need any help from our side. Have a nice time.

    Regards,

    Rudy

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2018-12-03T23:15:42+00:00

    If you dont mine can you share the sample code to include how to import HRD reference file begining of the code ?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2018-12-03T17:35:06+00:00

    Hello AndyTech21,

    Thanks for your clarification.

    From the error message, it says the system doesn't know the HRD. Have you imported any related library file header of that code?

    Or you may check the way described here, is it helpful?

    Regards,

    Rudy

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-12-03T15:54:07+00:00

    Thanks Rudy,

    we are trying to achive automatic redirection using VIDM. For example . If any user agent type mobile should redirect to different URL ( airwatch url ) normal thick client should get ADFS page . Below code we added in onload java file . 

    if (navigator.userAgent.match(/iPad/i) != null){HRD.selection(‘vmwareidentity.com/SAAS/API/1.0/GET/metadata/idp.xml')} else {HRD.selection('http://ADFS.COM/adfs/services/trust')};

    code above work apart from windows m/c . I get error windows m/c script error stating “HRD undefined “ any suggestion and imputs ?

    Was this answer helpful?

    0 comments No comments
  5. Anonymous
    2018-12-03T15:06:24+00:00

    Hello AndyTech21,

    Welcome to post your query here.

    Based on search, please refer to the following related articles:

    Configure AD FS 2016 and Azure MFA

    https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/configure-ad-fs-and-azure-mfa

    Advanced Customization of AD FS Sign-in Pages

    https://docs.microsoft.com/en-us/windows-server/identity/ad-fs/operations/advanced-customization-of-ad-fs-sign-in-pages

    If anything is misunderstanding, feel free to correct me and provide us more information for better help.

    Regards,

    Rudy

    Was this answer helpful?

    0 comments No comments