Skip to content

rcongiu/play-silhouette-basic-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

play-silhouette-basic-authentication

This project guides you through using basic auth in your play project. Silhouette is a sophisticated framework that can handle multiple types of authentication but sometimes you just need the simplest one, that is basic auth, like good old apache, or even with a password stored in your play config.

  1. Add dependencies and resolvers in build.sbt
libraryDependencies ++= Seq(
  "com.mohiva" %% "play-silhouette" % "5.0.5",
  "com.mohiva" %% "play-silhouette-password-bcrypt" % "5.0.5",
  "com.mohiva" %% "play-silhouette-crypto-jca" % "5.0.5",
  "com.mohiva" %% "play-silhouette-persistence" % "5.0.5",
  "com.mohiva" %% "play-silhouette-testkit" % "5.0.5" % "test"
)

resolvers ++= Seq (
          Resolver.jcenterRepo,
         "Sonatype snapshots" at "https://oss.sonatype.org/content/repositories/snapshots/"
)

See full explanation here: http://www.congiu.com/basic-authorization-and-htaccess-style-authentication-on-the-play-framework-an-silhouete/

About

a seed project, showing how to implement simple auth and httpasswd auth on a play app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published