Automatically clear credentials on first use

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Post Reply
lestcape
Posts: 37
Joined: August 27th, 2016, 1:11 pm

Automatically clear credentials on first use

Post by lestcape »

We conduct surveys that have more than 500 interviewers and the devices we use are sometimes arbitrarily reused, so many times the credentials saved from the previous time are still valid, but they are not the ones that correspond to the new owners of the device.

Erasing the devices credencials one by one is not a profitable task, so, we ask interviewers every time they have a new device in their possession to erase credentials before attempting to send interviews, but many times they forget to do this and then interviews are sent. That with the wrong interviewer nickname.

To solve this problem, we think it is appropriate to have two things. The first is a way to clear credentials by writing code and the second is to have a way to detect if this is the first time CSEntry has been opened since the last installation (not counting updates as installations) of a questionnaire. Above all, the first point would be the most necessary, since I believe that the second point can be implemented, in some way. For example, checking if a blank file exists and generating it on startup if it does not exist so that it exists the next time it is loaded.

Is there a way to remove the credentials from inside the user code or can some way be added?
justinlakier
Posts: 152
Joined: November 21st, 2022, 4:41 pm

Re: Automatically clear credentials on first use

Post by justinlakier »

You can clear user settings by overriding the CommonStore PFF attribute (https://www.csprousers.org/help/CSPro/r ... entry.html) or using savesetting(clear) (https://www.csprousers.org/help/CSPro/s ... ction.html). The Saved Credentials, including access tokens to CSWeb/Dropbox and passwords, cannot be automatically cleared from logic. However Interviewer nickname, which you mentioned, would be a setting or a variable rather than a Saved Credential, so you will be able to reset it.

Hope that helps,
Justin
lestcape
Posts: 37
Joined: August 27th, 2016, 1:11 pm

Re: Automatically clear credentials on first use

Post by lestcape »

The Saved Credentials, including access tokens to CSWeb/Dropbox and passwords, cannot be automatically cleared from logic.
This is what is need, so nothing else you said help unfortunate.
However Interviewer nickname, which you mentioned, would be a setting or a variable rather than a Saved Credential, so you will be able to reset it.
The interviewer nick name i mention is the CSWeb user and password (the CSWeb credentials), not something that should be store in the setting or a variable.

Can anyone help to add a function to to clear credential to the logic? Thanks.
Post Reply