We generate a random string to use as a way for a SERVER to know who is requesting data using a webConnect.
A user runs a CIQ field which stores their String (saved in persistent storage) as a FIT SESSION string. That string is available to the server once the activity is uploaded. A one time "registration" upload. Until they use another device, or hard reset it, etc... Then they need to do this again since the saved key is gone.
From then on, the server will know that a webConnect using that String is from a specific User. Works great. No Username or Password needed in User Settings. The Authentication method is hidden from the user and no need to maintain User Settings.
One unfortunate thing is that the "key" is visible in their Garmin Connect Activity report. Not a big deal. There isn't anything sensitive about the data the server sends back. Workout Target values, FTP, that kind of thing.
But I don't think there is a way to add a string to a FIT file from a CIQ field that isn't displayed in the Garmin Connect Activity report, right?