2060-io / auth-demo

Apache License 2.0
0 stars 0 forks source link

Update and cleanup manage script #2

Open genaris opened 2 months ago

genaris commented 2 months ago

manage script is populated with lots of variables that are either not used or convenient for our implementation. For example:

  export ST_ACAPY_ADMIN_API_KEY_NAME="x-api-key"
 export AGENT_ADMIN_API_KEY=${AGENT_ADMIN_API_KEY}
  export AGENT_ADMIN_MODE="admin-insecure-mode"
  if [ ! -z "${AGENT_ADMIN_API_KEY}" ]; then
    AGENT_ADMIN_MODE="admin-api-key ${AGENT_ADMIN_API_KEY}"
  fi
  export MT_ACAPY_WALLET_ID=${MT_ACAPY_WALLET_ID}
  export MT_ACAPY_WALLET_KEY=${MT_ACAPY_WALLET_KEY}

Are not used. And the default values for these should be the opposite.

  export USE_OOB_PRESENT_PROOF=${USE_OOB_PRESENT_PROOF:-"false"}
  export USE_OOB_LOCAL_DID_SERVICE=${USE_OOB_LOCAL_DID_SERVICE:-"true"}

It is also a bit outdated after last merge with original vc-authn project, so some variables might be missing.