Skip to content

Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, CAS, 2FA, TOTP, Credentials, Basic Authentication or custom authentication schemes.

License

Notifications You must be signed in to change notification settings

playframework/play-silhouette

Silhouette

Twitter Follow Discord GitHub Discussions StackOverflow YouTube Twitch Status OpenCollective

Build Status Maven Repository size Scala Steward badge Mergify Status

Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, CAS, Credentials, Basic Authentication, Two Factor Authentication or custom authentication schemes.

Version compatibility matrix

Play 3.x with Apache Pekko Play 2.9.x with Akka Play 2.8.x with Akka
Silhouette 10.x 9.x 8.x

Modules

Module Scala 3.x.x Scala 2.13.x Scala 2.12.x
play-silhouette Maven Central Maven Central Maven Central
play-silhouette-cas Maven Central Maven Central Maven Central
play-silhouette-crypto-jca Maven Central Maven Central Maven Central
play-silhouette-password-argon2 Maven Central Maven Central Maven Central
play-silhouette-password-bcrypt Maven Central Maven Central Maven Central
play-silhouette-persistence Maven Central Maven Central Maven Central
play-silhouette-totp Maven Central Maven Central Maven Central
play-silhouette-testkit Maven Central Maven Central Maven Central

Installation

Latest Production Versions

To get the latest production release(s) from this repository, add the following to your project's build.sbt file, replacing x.x.x with the play-silhouette version of choice:

libraryDependencies += "org.playframework.silhouette" %% "play-silhouette" % "x.x.x"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-cas" % "x.x.x"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-crypto-jca" % "x.x.x"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-password-argon2" % "x.x.x"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-password-bcrypt" % "x.x.x"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-persistence" % "x.x.x"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-totp" % "x.x.x"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-testkit" % "x.x.x" % Test

Latest Snapshot Versions

This fork of play-silhouette shall also be releasing SNAPSHOTS of the latest passed builds which can be used for the latest, bleeding-edge features, patches and code fixes prior to official production releases. If you want to pull these for testing with your code in development environments, please ensure that you add the appropriate resolver below, and select the appropriate version with x.x.x (>= 7.0.1).

resolvers += "snapshots" at "https://s01.oss.sonatype.org/content/repositories/snapshots/"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette" % "x.x.x-SNAPSHOT"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-cas" % "x.x.x-SNAPSHOT"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-crypto-jca" % "x.x.x-SNAPSHOT"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-password-argon2" % "x.x.x-SNAPSHOT"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-password-bcrypt" % "x.x.x-SNAPSHOT"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-persistence" % "x.x.x-SNAPSHOT"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-totp" % "x.x.x-SNAPSHOT"
libraryDependencies += "org.playframework.silhouette" %% "play-silhouette-testkit" % "x.x.x-SNAPSHOT" % Test

Support

If you have question regarding Silhouette, please use the chat. Please do not use the issue tracker for questions!

Contribution

Please read the [contributing guide] before you contribute. It contains very useful tips for a successful contribution.

License

The code is licensed under Apache License v2.0 and the documentation under [CC BY 3.0].

This repository started life as a fork from the main repository but now exists as it's own project. Thank you very much to previous maintainer Christian Kaps (@akkie) and all contributors for the work you've done to bring us to this point. This library was made fantastic and we are looking to continue along the path you set for us.

About

Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, CAS, 2FA, TOTP, Credentials, Basic Authentication or custom authentication schemes.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages