I need to store user login credentials, with the intention that they will be shared across several of our upcoming applications.
I am planning on using currentProfileData to allow this.
From my understanding, anything stored in currentProfileData can be read by any widgets, which could potentially create a security issue of other widgets viewing the credentials.
What are my options for sharing credentials, but limiting it to only our applications? I was planning on a JS TEA Encryption Algorithm (http://www.movable-type.co.uk/scripts/tea-block.html) to encrypt the credentials. Any additional options?
Also, if I call:
CODE
currentProfileData.set('credentials', credentials);
and some other app does the same, then my credentials could be overwritten. Is there a suggested practice, as far as creating a namespace for our profile data specific to our apps?
I'm assuming I would just create one object/map that I store using currentProfileData, and use a reverse domain notation, or something like that. For example:
CODE
currentProfileData.set('companyNameSpace', "{ "credentials" : ... }");
Thanks