https://github.com/kyleu/play-silhouette-postgres-async-seed
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.
https://github.com/kyleu/play-silhouette-postgres-async-seed
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/kyleu/play-silhouette-postgres-async-seed
- Owner: kyleu
- License: apache-2.0
- Created: 2015-07-10T03:43:33.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-01T16:33:44.000Z (almost 11 years ago)
- Last Synced: 2025-05-14T11:41:22.356Z (about 1 year ago)
- Language: Scala
- Homepage:
- Size: 1.1 MB
- Stars: 14
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Play Silhouette Postgres Async Seed
===================================
The Play Silhouette Postgres Async Seed project shows how [Silhouette 3.0](https://github.com/mohiva/play-silhouette) can be used
to create an application with Play 2.4, [postgres-async](https://github.com/mauricio/postgresql-async), and [jdub-async](https://github.com/KyleU/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](http://www.apache.org/licenses/LICENSE-2.0).