<?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>question OAuth 2 - Grant Type:  Client Credentials in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/oauth-2-grant-type-client-credentials/m-p/1982267#M639193</link>
    <description>&lt;P&gt;I'm working on a project to integrate our ServiceNow instance with the new version of Dell's TechDirect API.&amp;nbsp; The integration requires OAuth 2.0 to get an access token for the API.&amp;nbsp; I'm able to successfully setup and retrieve the token with Postman using the Grant Type of Client Credentials.&lt;/P&gt;
&lt;P&gt;This is from the attached &lt;STRONG&gt;Dell OAuth 2.0 Spec Guide&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;3.2 Postman Tutorial&lt;BR /&gt;1. Select Authorization Type as “OAuth 2.0”&lt;BR /&gt;2. Click “Get New Access Token”&lt;BR /&gt;3. Grant Type – Client Credentials&lt;BR /&gt;4. Access Token URL - https://apigtwb2c.us.dell.com/auth/oauth/v2/token&lt;/P&gt;
&lt;P&gt;If I try to do this same setup in ServiceNow and retrieve the OAuth Token, I receive the error &lt;STRONG&gt;"Unsupported OAuth grant type 'Client Credentials'"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/57126iED7584762B1E67D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any assistance is helpful.&lt;/P&gt;
&lt;P&gt;Rick&lt;/P&gt;</description>
    <pubDate>Thu, 05 Dec 2019 14:15:21 GMT</pubDate>
    <dc:creator>Rick Mann</dc:creator>
    <dc:date>2019-12-05T14:15:21Z</dc:date>
    <item>
      <title>OAuth 2 - Grant Type:  Client Credentials</title>
      <link>https://www.servicenow.com/community/developer-forum/oauth-2-grant-type-client-credentials/m-p/1982267#M639193</link>
      <description>&lt;P&gt;I'm working on a project to integrate our ServiceNow instance with the new version of Dell's TechDirect API.&amp;nbsp; The integration requires OAuth 2.0 to get an access token for the API.&amp;nbsp; I'm able to successfully setup and retrieve the token with Postman using the Grant Type of Client Credentials.&lt;/P&gt;
&lt;P&gt;This is from the attached &lt;STRONG&gt;Dell OAuth 2.0 Spec Guide&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;3.2 Postman Tutorial&lt;BR /&gt;1. Select Authorization Type as “OAuth 2.0”&lt;BR /&gt;2. Click “Get New Access Token”&lt;BR /&gt;3. Grant Type – Client Credentials&lt;BR /&gt;4. Access Token URL - https://apigtwb2c.us.dell.com/auth/oauth/v2/token&lt;/P&gt;
&lt;P&gt;If I try to do this same setup in ServiceNow and retrieve the OAuth Token, I receive the error &lt;STRONG&gt;"Unsupported OAuth grant type 'Client Credentials'"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/57126iED7584762B1E67D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Any assistance is helpful.&lt;/P&gt;
&lt;P&gt;Rick&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 14:15:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/oauth-2-grant-type-client-credentials/m-p/1982267#M639193</guid>
      <dc:creator>Rick Mann</dc:creator>
      <dc:date>2019-12-05T14:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2 - Grant Type:  Client Credentials</title>
      <link>https://www.servicenow.com/community/developer-forum/oauth-2-grant-type-client-credentials/m-p/1982268#M639194</link>
      <description>&lt;P&gt;Hi Rick,&lt;/P&gt;
&lt;P class="ng-scope"&gt;In OAuth Provider settings,&amp;nbsp;change the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Default Grant type&lt;/STRONG&gt;&amp;nbsp;&lt;/EM&gt;field value&amp;nbsp;to&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;Resource Owner Password Credentials&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;instead of&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;Client Credentials&lt;/STRONG&gt;&lt;/EM&gt;.&lt;/P&gt;
&lt;P class="ng-scope"&gt;If all other fields (Client ID, Client Secret, Token URL) are set correctly, you should be able to generate the token and see&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;OAuth token flow completed successfully&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;message when you supply correct Username and Password.&lt;/P&gt;
&lt;P class="ng-scope"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="ng-scope"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/57129i0027BA6A2E1D1DBB/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="ng-scope"&gt;Hope this can help you to solve your issue!&lt;/P&gt;
&lt;P&gt;If I have answered your question, please mark my response as correct and/or helpful.&lt;/P&gt;
&lt;P&gt;Thank you very much&lt;/P&gt;
&lt;P&gt;Cheers&lt;BR /&gt;Alberto&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 14:19:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/oauth-2-grant-type-client-credentials/m-p/1982268#M639194</guid>
      <dc:creator>Alberto Consonn</dc:creator>
      <dc:date>2019-12-05T14:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: OAuth 2 - Grant Type:  Client Credentials</title>
      <link>https://www.servicenow.com/community/developer-forum/oauth-2-grant-type-client-credentials/m-p/1982269#M639195</link>
      <description>&lt;P&gt;Thank Alberto&lt;/P&gt;
&lt;P&gt;I set the Default Grant type to &lt;STRONG&gt;Resource Owner Password Credentials,&amp;nbsp;&lt;/STRONG&gt;but I'm not prompted to supply a username and password.&lt;/P&gt;
&lt;P&gt;Should I be prompted for credentials when I click&amp;nbsp;&lt;STRONG&gt;Get OAuth Token&amp;nbsp;&lt;/STRONG&gt;in the GET method?&amp;nbsp; I receive the message:&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Unsupported OAuth grant type 'Resource Owner Password Credentials'&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/57128i1FD5162EF44C0794/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="find_real_file.png"&gt;&lt;img src="https://www.servicenow.com/community/image/serverpage/image-id/57125i4390A87E11D5CC72/image-size/large?v=v2&amp;amp;px=999" role="button" title="find_real_file.png" alt="find_real_file.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:42:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/oauth-2-grant-type-client-credentials/m-p/1982269#M639195</guid>
      <dc:creator>Rick Mann</dc:creator>
      <dc:date>2019-12-05T15:42:03Z</dc:date>
    </item>
  </channel>
</rss>

