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
MacroCore library for app developers
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
MacroCore library for app developers
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

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

SAS Training: Just a Click Away

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

Browse our catalog!

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