Skip to content

Instantly share code, notes, and snippets.

@thbkrkr
Created April 18, 2014 23:36
Show Gist options
  • Save thbkrkr/11068587 to your computer and use it in GitHub Desktop.
Save thbkrkr/11068587 to your computer and use it in GitHub Desktop.
The com.actoboard.auth.HumanUser class comment by @bluxte
package com.actoboard.auth
import org.mindrot.jbcrypt.BCrypt
import com.actoboard.base.mongo._
import com.fasterxml.jackson.annotation.{JsonTypeName, JsonView}
import com.actoboard.base.util.StringUtils
/**
* A human principal.
*
* Our interpretation of "human" is simpler than the Turing test: we consider as being human some
* entity who has an email and a password to connect to Actoboard. If you can train your cat to
* type a valid email address and password, then we'll consider it as a human-like principal.
*
* Aliens who satisfy these constraints are accepted too, provided their name, email and password
* can be encoded in UTF-8.
*/
@JsonTypeName("human")
case class HumanUser (
id: EntityId[ActoPrincipal],
...
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment