Skip to content

A template Play 2.4 application which uses Silhouette 3.0 as an authentication library for local credentials, Facebook, Google, and Twitter. All users and sessions are persisted asynchronously thanks to postgres-async and jdub-async.

License

Notifications You must be signed in to change notification settings

kyleu/play-silhouette-postgres-async-seed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play Silhouette Postgres Async Seed

The Play Silhouette Postgres Async Seed project shows how Silhouette 3.0 can be used to create an application with Play 2.4, postgres-async, and jdub-async, supporting signing in with Facebook, Google, or Twitter. It's a starting point which can be extended to fit your needs.

Authentication Behavior

All requests from a new source result in a Session and User being created. After signing up, they'll have a credentialed or social profile associated to the User. You can associate any number of profiles to a User.

Features

  • Sign Up
  • Sign In (Credentials)
  • Social Auth (Facebook, Google+, Twitter)
  • Dynamic Schema Creation
  • Role-based Permissions
  • User Search Service
  • Minimal Dependency Injection with Guice
  • Publishing Events

Configuring social providers

Social providers need to be configured in the application.conf file.

// Facebook
facebook {
  clientId = "CHANGEME"
  clientSecret = "CHANGEME"
}
    
// Google
google {
  clientId = "CHANGEME"
  clientSecret = "CHANGEME"
}

etc...

Activator

See https://typesafe.com/activator/template/play-silhouette-postgres-async-seed

License

The code is licensed under Apache License v2.0.

About

A template Play 2.4 application which uses Silhouette 3.0 as an authentication library for local credentials, Facebook, Google, and Twitter. All users and sessions are persisted asynchronously thanks to postgres-async and jdub-async.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published