BookmarkSubscribeRSS Feed
BahetiG
Calcite | Level 5

Hello,

I have subscribed to SAS Viya trial and Cloud-based SAS Studio.

I want to use SAS REST API's but it needs to register a client for Authentication and Authorization after that I can get an access token, but I am not able to find how to register a client for Authentication and Authorization.


I am using Windows 10 OS to connect with SAS Studio.

3 REPLIES 3
AllanBowe
Barite | Level 11

You need to be an administrator to register a client.  If that's the case, then you would be able to do this directly in SAS Studio using the following macro:  https://core.sasjs.io/mv__registerclient_8sas.html

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
BahetiG
Calcite | Level 5

Hello Allan,

Thank you for your reply.
When I am trying to run the suggested macro ( https://core.sasjs.io/mv__registerclient_8sas.html ) facing following issue:

ERROR: Execution canceled by an %ABORT CANCEL statement. 

 

Please suggest a solution.

AllanBowe
Barite | Level 11

I would need to see more of the log to confirm, but it sounds like you are not an administrator.

 

I suggest asking an administrator to register your client - they would be able to run the macro, or use a tool like this:  https://sasjs.io/apps/#viya-client-token-generator

/Allan
SAS Challenges - SASensei
MacroCore library for app developers
SAS networking events (BeLux, Germany, UK&I)

Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1038 views
  • 0 likes
  • 2 in conversation