-
Notifications
You must be signed in to change notification settings - Fork 0
das2c_credsave
C. Piker edited this page Dec 12, 2023
·
1 revision
das2c_credsave
Save server credentials and URL match conditions
num_creds = das2c_credsave()
num_creds = das2c_credsave(filename)
num_creds = das2c_credsave(filename, symetric_key) ; TODO
Parameter | Type | Purpose |
---|---|---|
filename | String
|
The full path to the file where credentials and match conditions are saved. If not provided $HOME/.das2_auth or %USERPROFILE%/.das2_auth is used. For interoperability, this is the same file name used by das2pyThe default location can also be indicated by using !NULL for this input. |
symetric_key (TODO) |
String | A password used to encrypt and decrypt the credentials file. This is not yet implemented in das2C, but is documented here to indicate planned development |
Returns the number of credentials saved
The current credential set in memory is written to the file. This could overwrite previous entries if das2c_credload has not been called on the same file.
-
Save authentication tokens and server match criteria in the default location:
nCreds = das2c_credsave()
-
Create and save an auth token in a non-default location:
sURL = 'https://planet.physics.uiowa.edu/test/server/' sRealm = 'Realm of Makebelieve' sDataset = 'test/newsource' sUser = 'drjfever' sPass = 'really~4disco' nCreds = das2c_credsave(sUrl, sRealm, sDataset, sUser, sPass) nCreds = das2c_credsave('/home/someone/.test_auth')
C. Piker, 2023-12-12 - Initial Version