Created
April 18, 2014 23:36
-
-
Save thbkrkr/11068587 to your computer and use it in GitHub Desktop.
The com.actoboard.auth.HumanUser class comment by @bluxte
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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