Persona to handle authentication for badges. This is largely because that's what Mozilla open badges use. However it does mean that I can avoid storing any identifiable data, even though I have to host the assertion evidence that open badges needs to prove that a particular person has been awarded a particular badge. Here's how.
I'm using Where everything is keptThere are a a number of technologies mashed up together to create this badge issuing environment
PrivacyPersona handles authentication and the username/password combination are never seen by the calling application. An email address is picked up from Persona, however it is never stored anywhere. Instead, a one way hash of the email and badge are made and it is this key that is used to store the award against. In this way, the email address of the badge earner are never stored in the scriptDB database, and we can still provide the assertion (proof of earning), that openbadges obliges us to host.
assertionManager code.The code for the other modules are shown elsewhere, but this is all the code you need to provide to create your own assertion manager. You can just copy as is (to create your own private scriptDb and defaults) and publish the script as your assertion manager. As with most of the environment the main code is in the mcpher library, which you need to add to your project references. assertionManager library code |
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > Things that have been deprecated > Badges >