Skip to content

Instantly share code, notes, and snippets.

@brikis98
Created January 29, 2016 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brikis98/4d76039f7c1c13227dd5 to your computer and use it in GitHub Desktop.
Save brikis98/4d76039f7c1c13227dd5 to your computer and use it in GitHub Desktop.
class MyEnvironment extends Environment[MyUser, CookieAuthenticator] {
override val identityService: IdentityService[MyUser] = new MyIdentityService()
override val authenticatorService: AuthenticatorService[CookieAuthenticator] = new CookieAuthenticatorService(
settings = CookieAuthenticatorSettings(),
dao = None,
fingerprintGenerator = new DefaultFingerprintGenerator(),
idGenerator = new SecureRandomIDGenerator(),
clock = Clock()
)
override val eventBus: EventBus = EventBus()
// What's a RequestProvider?
override val requestProviders: Seq[RequestProvider] = ???
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment