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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 1421 views
  • 0 likes
  • 2 in conversation