lsgs/redcap-rest

Question - configuring token at system level.

Closed this issue · 2 comments

Hi Luke (@lsgs),

Just getting familiar with this EM as I might be using it soon.

image

I've not used the '[token-ref]' tag before so not sure how one is actually created at system level - any pointers?

Thanks,

John

lsgs commented

Take a look in the EM settings in the Control Center and you'll see you can create repeating subsettings like this, @274188A:

image

The idea is that you as admin can record private information such as auth tokens here at system level so they are not visible to project users when embedded in project-level settings. Indeed, if it is a project API token for a particular user that you want to use, then select the project and user and no-one need ever actually see the user's token.

Say you configure a system-level token reference of secret-auto-token , then you can use [tokn-ref:secret-auth-token] in your project config whereever you would otherwise hard-code the auth token - typically in the payload or additional headers.
HTH

ah! missed that - thanks!