ServiceNow and DUO integration

Jen11
Tera Expert

Has anyone integrated ServiceNow and DUO?  Could someone provide more help on what I would need to do in ServiceNow side to integrate with DUO? 

Thanks,

 

13 REPLIES 13

Can you share the code you used to calculate the HTTP Basic Authentication header parameter?  I'm trying to use the following but not getting anywhere.

var mac = new GlideCertificateEncryption;
var key = "Tue, 21 Aug 2012 17:29:18 -0000\nGET\napi-xxxxxxxx.duosecurity.com\n/auth/v2/check\n";
var keygen = mac.generateMac(key, "HmacSHA1", "<secret key>");
var auth = '<integration key>:' + GlideStringUtil.base64Encode(keygen);
gs.print(GlideStringUtil.base64Encode(auth));

According to the docs Duo Auth API | Duo Security
If I use DIWJ8X6AEYOR5OMC6TQ1 as the integration key and Zh5eGmUq9zpfQnyUIu5OL9iWoMMv5ZNmk3zLJ4Ep as the secret key I should get a string of RElXSjhYNkFFWU9SNU9NQzZUUTE6NGUxMzY2MGVmMGEwZTQ5MWFhNzg2ZGNhZmM2MDgwMjU0NzFkOTg5Nw==

but I don't 😞 

shawnbradley
Kilo Contributor

Here is a working example on ServiceNow share.  This allows you to validate a callers identity by sending a DUO push from the user record in ServiceNow.

find_real_file.png

vidhukeshvimal
Kilo Contributor

Were you able to find a solution to do 2 Factor Authentication

Hello,

Would you be able to share the steps?

thanks