<?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: how to update a client registration in Developers</title>
    <link>https://communities.sas.com/t5/Developers/how-to-update-a-client-registration/m-p/691036#M982</link>
    <description>&lt;P&gt;Great! Thanks for the extra resources. They will be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am glad to say that I got the registration to work and successfully called my first Viya api. Will definitely share any other questions/discoveries as we work on getting our app going.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2020 18:10:36 GMT</pubDate>
    <dc:creator>jglew</dc:creator>
    <dc:date>2020-10-12T18:10:36Z</dc:date>
    <item>
      <title>how to update a client registration</title>
      <link>https://communities.sas.com/t5/Developers/how-to-update-a-client-registration/m-p/690489#M980</link>
      <description>&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;I am trying to use the password access token as described in this blog post (&lt;A href="https://blogs.sas.com/content/sgf/2019/01/25/authentication-to-sas-viya/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2019/01/25/authentication-to-sas-viya/&lt;/A&gt;). I believe when I registered my client that I didn't list the correct group name in the scope. I get a "full authentication is required" message when I try to call an API. Is the scope supposed to include the SAS group of people who can use the APIs?&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;So now, I'm looking for how to update that client registration - what call do I make to update the client registration (rather than create a new one)?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Oct 2020 16:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/how-to-update-a-client-registration/m-p/690489#M980</guid>
      <dc:creator>jglew</dc:creator>
      <dc:date>2020-10-09T16:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to update a client registration</title>
      <link>https://communities.sas.com/t5/Developers/how-to-update-a-client-registration/m-p/691007#M981</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16945"&gt;@jglew&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;If you'd like to update the client registration you can use the &lt;A href="https://developer.sas.com/apis/rest/CoreServices/#sas-logon" target="_self"&gt;SAS logon API&lt;/A&gt;, found under &lt;A href="https://developer.sas.com/apis/rest/CoreServices/#core-services" target="_self"&gt;Core Services&lt;/A&gt; in the API reference doc. Specifically, you can update everything except the client secret by &lt;A href="https://developer.sas.com/apis/rest/CoreServices/#update-client" target="_self"&gt;using a PUT method and the client_id&lt;/A&gt;. To &lt;A href="https://developer.sas.com/apis/rest/CoreServices/#change-secret" target="_self"&gt;update the secret&lt;/A&gt;, there is a separate endpoint.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The update API call would look simiar to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PUT /SASLogon/oauth/clients/my.client.app
    Content-Type: application/json
    Authorization: Bearer 6eb2f....3d7
    Accept: application/json
Body:
{
  "scope" : [ "clients.new", "clients.autoapprove" ],
  "client_id" : "my.client.app",
  "authorized_grant_types" : [ "client_credentials" ],
  "redirect_uri" : [ "http://redirect.url" ],
  "autoapprove" : [ "clients.autoapprove" ]
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To understand how to set the scope based on user group administration, I'd recommenr the following resources on&lt;SPAN&gt;&amp;nbsp;SAS Administration concepts of&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=calcdc&amp;amp;cdcVersion=3.5&amp;amp;docsetId=calids&amp;amp;docsetTarget=p0ata1oqy9v7nan188h1k254doxq.htm&amp;amp;locale=en#p1sbgl8p51yys1n1axirtvexfriz" target="_blank" rel="noopener noreferrer"&gt;Custom Groups&lt;/A&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=calcdc&amp;amp;cdcVersion=3.5&amp;amp;docsetId=calauthzgen&amp;amp;docsetTarget=p09cpzc53noq2mn1lyxkq4rvx5l0.htm&amp;amp;locale=en" target="_blank" rel="noopener noreferrer"&gt;granting access to SAS Content&lt;/A&gt;&lt;SPAN&gt;, and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=calcdc&amp;amp;cdcVersion=3.5&amp;amp;docsetId=calauthzgen&amp;amp;docsetTarget=p1bh4gj8c2xv1nn1fx011prusmii.htm&amp;amp;locale=en" target="_blank" rel="noopener noreferrer"&gt;creating authorization rules&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In addition to the blog post you referred to in your post, there is an excellent &lt;A href="https://blogs.sas.com/content/tag/build-custom-app/" target="_self"&gt;series on client registration, OAuth, and access&lt;/A&gt; by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/115394"&gt;@tarastclair&lt;/a&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Joe&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 16:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/how-to-update-a-client-registration/m-p/691007#M981</guid>
      <dc:creator>joeFurbee</dc:creator>
      <dc:date>2020-10-12T16:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to update a client registration</title>
      <link>https://communities.sas.com/t5/Developers/how-to-update-a-client-registration/m-p/691036#M982</link>
      <description>&lt;P&gt;Great! Thanks for the extra resources. They will be helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am glad to say that I got the registration to work and successfully called my first Viya api. Will definitely share any other questions/discoveries as we work on getting our app going.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2020 18:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/how-to-update-a-client-registration/m-p/691036#M982</guid>
      <dc:creator>jglew</dc:creator>
      <dc:date>2020-10-12T18:10:36Z</dc:date>
    </item>
  </channel>
</rss>

