Examples
This page lists some examples which show how Silhouette can be used in various kinds of projects.
Silhouette Seed Template
The Silhouette Seed project is an Activator template which shows how Silhouette can be used in a Play Framework application. It’s a starting point which can be extended to fit your needs.
Silhouette Angular Seed Template
The Silhouette Angular Seed project is an Activator template which shows how Silhouette can be used to create an SPA with AngularJS and Play. It’s a starting point which can be extended to fit your needs.
Silhouette Slick Seed Template
A fork of the Silhouette Seed project which uses Slick as database access library.
Silhouette Cake Seed Template
Seed project for Play Framework with Silhouette, using the Cake Pattern for dependency injection.
Silhouette Rest Seed
Seed project for Play Framework with Silhouette, exposing a rest API for signup and signin.
Play Silhouette Credentials Seed
This project tries to be an example of how to implement an Authentication and Authorization layer using the Silhouette authentication library.
It implements the typical authentication and authorization functionality based on roles. You can:
- Sign up (with email confirmation)
- Sign in (with remember me)
- Sign out
- Change password
- Reset password (via email)
- Control of public and private areas
- Restrict areas to those users whose roles match with the specified ones (with logic
OR
orAND
)
Play 2.4 Multidomain Auth
Project for Play Framework with Silhouette, showing how to add an authentication and authorizaton layer. The project is split in two main subprojects: a public web page that uses a complete authentication layer (including sign up with email confirmation, sign in with remember me, change passwords and reset passwords with email confirmation), and an administration web page that uses also a simple authorization layer based on roles.
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.
Silhouette ReactiveMongo Seed
A fork of the Play Silhouette Seed template which shows how ReactiveMongo can be used as a backing store.
Silhouette ReactiveMongo Angular Seed
A fork of the Play Silhouette Seed template which shows how ReactiveMongo can be used as a backing store in a SPA with AngularJS.
Silhouette Seed with missing features
A fork of the Play Silhouette Seed template which has implemented missing features like:
- Sign Up via email
- Update/reset forgotten password
dwPlayDemo
Inspired by the play-multidomain-auth
and play-silhouette-reactivemongo-seed
projects, with these improvements:
-
User model designed for account linking
-
Account linking
-
DAO unit testing
-
Check for completed registration before authentication
-
CSRF protection
-
Demo for secure Ajax call
-
Setup for deployment to Bluemix or CloudFoundry
-
HTTP disabled in production mode (only HTTPS allowed)
Currently works with Play 2.4.x
Updated about 2 months ago