<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Preauth API failing but check and ping are good in APIs</title>
    <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876787#M78</link>
    <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I am also having the same issue on POSTMAN. I put my skey(Password) and ikey(Username) under Authorization, after selecting Basic Auth.&lt;BR /&gt;
POSTMAN created the Authorization Header. I am passing “Date” and “Content-Type” in the header".&lt;BR /&gt;
I am getting {“code”: 40103, “message”: “Invalid signature in request credentials”, “stat”: “FAIL”}&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 06 May 2019 22:21:03 GMT</pubDate>
    <dc:creator>pcharan</dc:creator>
    <dc:date>2019-05-06T22:21:03Z</dc:date>
    <item>
      <title>Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876779#M70</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I reffed to &lt;A href="http://documentation" rel="nofollow noopener"&gt;https://duo.com/docs/authapi#endpoints&lt;/A&gt; to use DUO Auth API for check and preauth.&lt;BR /&gt;
i used this &lt;A href="http://code" rel="nofollow noopener"&gt;https://github.com/duosecurity/duo_client_java/blob/master/duo-client/src/main/java/com/duosecurity/client/Http.java&lt;/A&gt; and with this the ping and check API’ are success but Preauth api i am getting &lt;STRONG&gt;40103 Invalid signature in request credentials&lt;/STRONG&gt; and i am using the correct ikey and skey that are created for Auth API in duo admin console&lt;/P&gt;
&lt;P&gt;Could you please suggest me on how to resolve this issue.&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Aug 2018 17:53:02 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876779#M70</guid>
      <dc:creator>kpr284</dc:creator>
      <dc:date>2018-08-30T17:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876780#M71</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Per &lt;A href="https://help.duo.com/s/article/1338"&gt;this Duo KB article&lt;/A&gt;, please try the following suggestions:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Verify that the signature is encoded in hexadecimal ASCII; is using the correct HMAC-SHA1 signature as the password; lists parameters in alphabetical order.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 31 Aug 2018 19:35:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876780#M71</guid>
      <dc:creator>DuoKristina</dc:creator>
      <dc:date>2018-08-31T19:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876781#M72</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;&lt;A class="mention" href="https://community.duo.com/u/duokristina"&gt;@DuoKristina&lt;/A&gt; what exactly does that mean?  I’m using Postman simply to test and I’m receiving the same error.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Nov 2018 18:31:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876781#M72</guid>
      <dc:creator>humblecoder</dc:creator>
      <dc:date>2018-11-13T18:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876782#M73</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Hey &lt;A class="mention" href="https://community.duo.com/u/humblecoder"&gt;@humblecoder&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;Did you take a look at the &lt;A href="https://help.duo.com/s/article/1338?language=en_US"&gt;KB article&lt;/A&gt; I referenced, which lists common Duo error codes and possible causes?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Nov 2018 19:41:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876782#M73</guid>
      <dc:creator>DuoKristina</dc:creator>
      <dc:date>2018-11-13T19:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876783#M74</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;&lt;A class="mention" href="https://community.duo.com/u/duokristina"&gt;@DuoKristina&lt;/A&gt; I did indeed.  In fact I’d seen it before coming here.  I don’t mean to be obtuse, but are you referring to the parameter structure as a “signature”?  I’ve never seen “signature” in that context and have no idea how it’s being used.&lt;/P&gt;
&lt;P&gt;Also, while the KB article ostensibly says &lt;EM&gt;what&lt;/EM&gt; the fix is, it doesn’t make clear &lt;EM&gt;how&lt;/EM&gt; that is accomplished.   I mean, from my perspective, I’m sending the request in plain text via PostMan.  I can’t imagine what else to fix.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Nov 2018 20:05:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876783#M74</guid>
      <dc:creator>humblecoder</dc:creator>
      <dc:date>2018-11-13T20:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876784#M75</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;By “signature” we do refer to the computed SHA1 of the API request (with parameters) as described in here: &lt;A href="https://duo.com/docs/authapi#-authentication-"&gt;Auth API | Duo Security&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Are you also having a success on &lt;CODE&gt;/check&lt;/CODE&gt; but fail on &lt;CODE&gt;/preauth&lt;/CODE&gt;? Or, is nothing successful?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Nov 2018 20:37:35 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876784#M75</guid>
      <dc:creator>DuoKristina</dc:creator>
      <dc:date>2018-11-13T20:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876785#M76</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;&lt;A class="mention" href="https://community.duo.com/u/duokristina"&gt;@DuoKristina&lt;/A&gt; Actually, I can’t get anything to succeed.  Here is the JS I’m using to create the relevant params in PostMan:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;	let curDate = (new Date()).toUTCString()
	let myHost = 'HIDDEN-HOST'

	let params = {
			'device': 'auto',
			'factor': 'push',
			'username': 'HIDDEN-NAME'
	}

	let urlEncodedParams = []

	_.forOwn(params,(v,k)=&amp;gt;{
		urlEncodedParams.push(encodeURIComponent(k) + '=' + encodeURIComponent(v))
	})

	let sigComponents = {
			'date': curDate,
			'host': myHost,
			'method': 'POST',
			'path': '/auth/v2/auth',
			'urlParam': urlEncodedParams.join('&amp;amp;')
	}

	let ■■■■ing = Object.values(sigComponents).join('\r\n')

	let hmacSignature = CryptoJS.HmacSHA1(sigComponentValueString, 'HIDDEN-STRING').toString()

	pm.environment.set("env_new_date", curDate)
	pm.environment.set("env_hmac_signature", hmacSignature);

	console.log(sigComponentValueString)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Obviously a convoluted process (especially given the nature of the requirement), but is there anything glaringly wrong.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Nov 2018 23:10:41 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876785#M76</guid>
      <dc:creator>humblecoder</dc:creator>
      <dc:date>2018-11-13T23:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876786#M77</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;&lt;A class="mention" href="https://community.duo.com/u/duokristina"&gt;@DuoKristina&lt;/A&gt; It would be nice to have far more descriptive errors, especially in “development”.  Perhaps we could see on our dashboard what was sent vs what the server compared it to.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 15 Nov 2018 15:16:43 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876786#M77</guid>
      <dc:creator>humblecoder</dc:creator>
      <dc:date>2018-11-15T15:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876787#M78</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I am also having the same issue on POSTMAN. I put my skey(Password) and ikey(Username) under Authorization, after selecting Basic Auth.&lt;BR /&gt;
POSTMAN created the Authorization Header. I am passing “Date” and “Content-Type” in the header".&lt;BR /&gt;
I am getting {“code”: 40103, “message”: “Invalid signature in request credentials”, “stat”: “FAIL”}&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2019 22:21:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876787#M78</guid>
      <dc:creator>pcharan</dc:creator>
      <dc:date>2019-05-06T22:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876788#M79</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;&lt;A class="mention" href="https://community.duo.com/u/duokristina"&gt;@DuoKristina&lt;/A&gt; - I did try to use the python code at &lt;A href="https://duo.com/docs/authapi#first-steps" class="inline-onebox" rel="nofollow noopener"&gt;Auth API | Duo Security&lt;/A&gt; to generate “Authorization header” but code is throwing&lt;BR /&gt;
NameError: name ‘unicode’ is not defined&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2019 22:22:44 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876788#M79</guid>
      <dc:creator>pcharan</dc:creator>
      <dc:date>2019-05-06T22:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876789#M80</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I was running into the same problem. I figured out the solution to it with postman. When DUO api is referring to sending the signature you need to dynamically build the signature using the pre-request script feature in postman. In the API documentation they talk about constructing the signature, this is what they are referring to. In postman the pre-request script will set the signature as a postman environment variable which you will access in the header section. Below is the script I used in the pre-request script to build using their example in the api section and it gave me the correct signature.&lt;BR /&gt;
You can verify the information by opening up the postman console. In your postman headers you will need to add Date with value of {{timestampHeader}} and Authorization with value of {{hmacAuthHeader}}&lt;BR /&gt;
The Body tab you will want to select x-www-form-urlencoded. My recommendation would be to start out small and use api: /auth/v2/preauth for your own example. Use the username and alias for value. Make sure that the pre-request script body value matches the same alias value you use in the body section. The script below will fail using their information from the api page. When you replace everything with your own information it should work. This is how I got mine to work. The added console lines will show up in postman console where you can verify the different steps of information. Please be aware the hostname below will need to be replaced because the forum removed the information for client key and secret key. Go to the &lt;A href="https://duo.com/docs/authapi" class="inline-onebox" rel="nofollow noopener"&gt;Auth API | Duo Security&lt;/A&gt; page and search for construct the signature and use the host listed, the ikey(CLIENT_KEY) and the secret key they have listed in their test test. One last thing I was never able to use the full username email instead I added a new alias with a short name to the user and made sure that what I was requesting on for username. If I used the full email it was never able to work. example: &lt;A href="mailto:bob@bob.com"&gt;bob@bob.com&lt;/A&gt; I added alias bob and did username=bob . Hopefully this will help others understand what is needed. Good luck&lt;/P&gt;
&lt;CODE&gt;
function getAuthHeader(httpMethod, requestUrl, requestBody) {
    console.log(requestBody); //body data
    console.log(httpMethod);  // http type: POST, GET, ETC
&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;var CLIENT_KEY = 'nnnn';
var SECRET_KEY = 'nnnn';
var AUTH_TYPE = 'HMAC-SHA1';

var moment = require('moment')    
/* Uncomment out lines below to use your test for getting correct formatted time and date */  
/* var timestamp = moment().format("ddd, DD MMM YYYY HH:mm:ss ZZ");
pm.environment.set("timestampHeader",timestamp);*/
var timestamp = "Tue, 21 Aug 2012 17:29:18 -0000";  /* Only for example */
pm.environment.set("timestampHeader",timestamp);

var hostname = "nnnn-xxxxxxxx.duosecurity.com";
var apicall = "/accounts/v1/account/list"
var body = "realname=First%20Last&amp;amp;username=root"
     
var requestData =  timestamp+"\n"+"POST"+"\n"+hostname+"\n"+apicall+"\n"+body;
console.log(requestData);

var hmacDigest = CryptoJS.HmacSHA1(requestData, SECRET_KEY);
console.log(hmacDigest);
var prebase = CLIENT_KEY+":"+hmacDigest;
console.log(prebase);
var baseComplete = btoa(prebase);
console.log(baseComplete);

var authHeader = "Basic "+baseComplete;
return authHeader;
&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;}&lt;BR /&gt;
postman.setEnvironmentVariable(‘hmacAuthHeader’, getAuthHeader(request[‘method’], request[‘url’], request[‘data’]));&lt;BR /&gt;
&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1X_c55cb7bfe1c56c882ac383e9d0b28f01a4615737.png" style="width: 690px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/191170iF0AE0F2B0AED1D99/image-size/large?v=v2&amp;amp;px=999" role="button" title="1X_c55cb7bfe1c56c882ac383e9d0b28f01a4615737.png" alt="1X_c55cb7bfe1c56c882ac383e9d0b28f01a4615737.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 19 May 2019 19:14:32 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876789#M80</guid>
      <dc:creator>xrave</dc:creator>
      <dc:date>2019-05-19T19:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876790#M81</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I used the above Pre Request Script, defined the environment variables. Still getting 40101.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Sep 2019 17:35:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876790#M81</guid>
      <dc:creator>prakassh</dc:creator>
      <dc:date>2019-09-12T17:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876791#M82</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Thank you xrave,  finally worked. The problem was that I was selecting “Basic Auth” under Authorization. It should be “No Auth” selected. I used script from above, using method as GET.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 13 Sep 2019 12:53:30 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876791#M82</guid>
      <dc:creator>prakassh</dc:creator>
      <dc:date>2019-09-13T12:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876792#M83</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;hi ,&lt;/P&gt;
&lt;P&gt;i have given below script in pre request script and getting an SyntaxError: Invalid or unexpected token,please help where i am doing wrong&lt;/P&gt;
&lt;P&gt;function getAuthHeader(httpMethod, requestUrl, requestBody) {&lt;/P&gt;
&lt;P&gt;console.log(requestBody);&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; console.log(httpMethod); // http type: POST, GET, ETC*/
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;var CLIENT_KEY = ‘xxxx’;&lt;/P&gt;
&lt;P&gt;var SECRET_KEY = ‘xxxxx’;&lt;/P&gt;
&lt;P&gt;var AUTH_TYPE = ‘HMAC-SHA1’;&lt;/P&gt;
&lt;P&gt;var moment = require(‘moment’)&lt;/P&gt;
&lt;P&gt;/*Uncomment out lines below to use your test for getting correct formatted time and date */&lt;/P&gt;
&lt;P&gt;var timestamp = moment().format(“ddd, DD MMM YYYY HH:mm:ss ZZ”);&lt;/P&gt;
&lt;P&gt;pm.environment.set(“timestampHeader”,timestamp);&lt;/P&gt;
&lt;P&gt;/&lt;EM&gt;var timestamp = “Tue, 21 Aug 2012 17:29:18 -0000”;  /&lt;/EM&gt; Only for example */&lt;/P&gt;
&lt;P&gt;/&lt;EM&gt;pm.environment.set(“timestampHeader”,timestamp);&lt;/EM&gt;/&lt;/P&gt;
&lt;P&gt;var hostname = “api-xxxxxxxx&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2X_8_869f384ed131c894a0336fbcbec753e500eed63f.png" style="width: 690px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/190924i33C2545C83B77DA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2X_8_869f384ed131c894a0336fbcbec753e500eed63f.png" alt="2X_8_869f384ed131c894a0336fbcbec753e500eed63f.png" /&gt;&lt;/span&gt;&lt;/DIV&gt; .duosecurity.com”;&lt;P&gt;&lt;/P&gt;
&lt;P&gt;var apicall = “/admin/v1/users”&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;var body = "realname=testingggggg&amp;amp;username=root"
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;var requestData =  timestamp+"\n"+“POST”+"\n"+hostname+"\n"+apicall+"\n"+body;&lt;/P&gt;
&lt;P&gt;console.log(requestData);&lt;/P&gt;
&lt;P&gt;var hmacDigest = CryptoJS.HmacSHA1(requestData, SECRET_KEY);&lt;/P&gt;
&lt;P&gt;console.log(hmacDigest);&lt;/P&gt;
&lt;P&gt;var prebase = CLIENT_KEY+":"+hmacDigest;&lt;/P&gt;
&lt;P&gt;console.log(prebase);&lt;/P&gt;
&lt;P&gt;var baseComplete = btoa(prebase);&lt;/P&gt;
&lt;P&gt;console.log(baseComplete);&lt;/P&gt;
&lt;P&gt;var authHeader = "Basic "+baseComplete;&lt;/P&gt;
&lt;P&gt;return authHeader;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;postman.setEnvironmentVariable(‘hmacAuthHeader’, getAuthHeader(request[‘method’], request[‘url’], request[‘data’]));&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Sep 2020 16:19:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876792#M83</guid>
      <dc:creator>testdemo_user</dc:creator>
      <dc:date>2020-09-16T16:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876793#M84</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I ran into the same issue when copying/using the pre-script. Be sure to replace the single quotes for the section below. When copied, they came across as unrecognized in Postman.&lt;/P&gt;
&lt;P&gt;postman.setEnvironmentVariable(‘hmacAuthHeader’, getAuthHeader(request[‘method’], request[‘url’], request[‘data’]));&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 08 Oct 2020 23:34:40 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876793#M84</guid>
      <dc:creator>DuoPablo</dc:creator>
      <dc:date>2020-10-08T23:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876794#M85</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I used this in GET /admin/v1/users&lt;BR /&gt;
Its not working …What Auth should I use .With No Auth its giving  errors -“Missing request credentials”&lt;BR /&gt;
With Basic Auth saying “Iinvalid request parameters”&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;&lt;DIV class="lightbox-wrapper"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2X_1_142878eafa87aa39878ee0b9198754a03b5dc1bb.png" style="width: 690px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/190973iD651CD22986FDA40/image-size/large?v=v2&amp;amp;px=999" role="button" title="2X_1_142878eafa87aa39878ee0b9198754a03b5dc1bb.png" alt="2X_1_142878eafa87aa39878ee0b9198754a03b5dc1bb.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 14 Jan 2022 16:57:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876794#M85</guid>
      <dc:creator>Sushmita_Saha</dc:creator>
      <dc:date>2022-01-14T16:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Preauth API failing but check and ping are good</title>
      <link>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876795#M86</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;&lt;A class="mention" href="https://community.duo.com/u/sushmita_saha"&gt;@Sushmita_Saha&lt;/A&gt; This was answered earlier in the thread: &lt;A href="https://community.duo.com/t/preauth-api-failing-but-check-and-ping-are-good/3125/13" class="inline-onebox"&gt;Preauth API failing but check and ping are good - #13 by prakassh&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please double-check your pre-request script for any formatting errors and ensure you have the required Headers as shown in &lt;A href="https://community.duo.com/t/preauth-api-failing-but-check-and-ping-are-good/3125/11" class="inline-onebox"&gt;Preauth API failing but check and ping are good - #11 by xrave&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 15 Jan 2022 05:47:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/preauth-api-failing-but-check-and-ping-are-good/m-p/4876795#M86</guid>
      <dc:creator>DuoPablo</dc:creator>
      <dc:date>2022-01-15T05:47:04Z</dc:date>
    </item>
  </channel>
</rss>

