These docs are for v4.0. Click to read the latest docs for v7.0.

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.

Link


Silhouette Angular Seed Template

The Silhouette Angular Seed project is an Activator template which shows how Silhouette can be used to create a SPA with AngularJS and Play. It’s a starting point which can be extended to fit your needs.

Link


Silhouette React/Redux Seed Template

A Silhouette Seed template which shows how Silhouette can be used to create a SPA with React/Redux and Play.

Link


Silhouette Slick Seed Template

A fork of the Silhouette Seed project which uses Slick as database access library.

Link


Silhouette Rest Seed

Seed project for Play Framework with Silhouette, exposing a rest API for signup and signin.

Link


Silhouette Credentials Seed for Authentication and Authorization [Silhouette 4.0]

This project tries to be an example of how to implement an authentication and authorization layer using the Silhouette authentication library.
This template only show you how to implement a credential authentication, but it's easy to add the social authentication as well.
You will see how to:

  • 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 or AND)

Link


Play 2.5 Multidomain Auth [Silhouette 4.0]

Project for Play Framework with Silhouette showing how to add an authentication and authorizaton layer. This is a continuation of the Silhouette Credentials Seed for Authentication and Authorization. The project is split in two main subprojects: a public web page that uses a complete authentication layer (including sign up with email confirmation and reset passwords), and an administration web page that uses also a simple authorization layer based on roles.

Link


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.

Link


Silhouette ReactiveMongo Seed

A fork of the Play Silhouette Seed template which shows how ReactiveMongo can be used as a backing store.

Link


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.

Link


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

Link


play-slick-silhouette-auth-api

Sample project, broken into SBT modules, using Play 2.5.3, Slick 3.1.1, Postgres, and Silhouette 4.0 prerelease

Link


silhouette-macwire-mongodb

This application will show you how to implement authentication and authorization using Play framework with scala + Macwire as dependency injection library + Silhouete to provide authentication using JWT and authorization + MongoDB with ReactiveMongo. This apps intend to be asynchronous over all layers.

Link