Closed GeneCupstid closed 4 years ago
Changes:
In SrfPreferences
LrApiToken
to LrApiCredential
to reduce confusion? There are a LOT of references to this property, so it may not be the best idea to change its name. If it was to happen, best to do it now rather than later, though.LrApiCredentialPath
to hold a path to a serialized PSCredential
object with API Token in the password field. This can be automatically imported when psm1 is run.DefaultLrUserId
- it was never used for anything, though I had something in mind at some point.Example of the new LrDeployment
section if all of these changes are added:
"LrDeployment": {
"Instructions": [
"1. Update URLs to point to your Platform Manager / AI Engine server.",
"3. If you'd like to use a saved token credential, include path to it in LrApiCredentialPath.",
"2. DO NOT SET A VALUE FOR LrApiCredential - this will be set by the module if LrApiCredentialPath is set."
],
"AdminApiBaseUrl": "https://server.comain.com:8501/lr-admin-api",
"CaseApiBaseUrl": "https://server.comain.com:8501/lr-case-api",
"AieApiUrl": "https://server.comain.com:8501/lr-drilldown-cache-api",
"LrApiCredentialPath": "C:\\repos\\SmartResponse.Framework\\tests\\cred_LrApiToken.xml",
"LrApiCredential": ""
},
Idea: Set-LrApiToken
cmdlet - to walk user through process?
Created feature branch 10-LrApiToken
to begin work on this issue.
This code is in dev now and will be merged in the next 24 hours.
Currently the value of
$SrfPreferences.LrDeployment.LrApiToken
isn't properly validated or reported to the user if missing.