Skip to content

rcongiu/play-silhouette-basic-auth

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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