BookmarkSubscribeRSS Feed
tomrvincent
Rhodochrosite | Level 12

Anyone hear of a way to embed credentials in a project?  Instead of having libname or connect statements in programs within a project, can you somehow embed userid and password somewhere else in it?  Never heard of it and a contractor in a different departments claims to have done this.  I'm running EG7.1.

4 REPLIES 4
ballardw
Super User

May want to describe exactly what the credentials are supposed to do. And check that the "contractor" is using credentials for the same purpose.

 

Proc HTTP might include credentials.

Filename FTP or URL might.

 

Information could be stored in a data set and data step code uses that information with something like Call Execute so you don't see the "credentials" in the code but the program generates statements on the fly for libname or connect strings.

tomrvincent
Rhodochrosite | Level 12
As I said, no libnames/connects are in programs and the contractor claims they are in the projects themselves. I'm getting the info 2nd/3rd hand so that's very helpful and the contractor is out the door as of last week...no documentation, no validation that any of the projects work. I suspect they were developed with a different version of EG as well.

Fun and games in corporate life.
SASKiwi
PROC Star

One way to do this is to use Authentication Domains that are defined in SAS metadata. The Authdomain links to a service account / password combination also stored in SAS metadata and any LIBNAME just needs to specify the AUTHDOMAIN option instead of supplying a user account and password. 

tomrvincent
Rhodochrosite | Level 12
Thank you. I will look into that and see if that works out.

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 4 replies
  • 1648 views
  • 0 likes
  • 3 in conversation