What is the difference between Silhouette and Deadbolt 2 in Play Framework
Asked Answered
K

1

10

We have two famous plugin for authentication and authorization in Play Framework, Silhouette and Deadbolt 2. My question is What is the difference between these two plugin? and for what situation we should use Silhouette or Deadbolt 2?

Knipe answered 5/10, 2015 at 10:15 Comment(0)
R
8

Deadbolt 2 is only an authorization framework. Silhouette is an authentication framework which supports also a basic authorization mechanism.

If you need authentication (web form, social, two factor, basic auth, ...) then you need Silhouette.

If you need authorization (manage access to your actions) then you need either Deadbolt 2 or Silhouette. Where Deadbolt 2 is the more powerful one in the authorization area.

Redvers answered 6/10, 2015 at 9:7 Comment(3)
Can they not be combined?Fructification
@Redvers given that this answer is almost 2 years old, is there any reference implementation on combining Silhouette authentication with Deadbolt authorization?Dogcatcher
Sorry, I'm not aware of an exampleRedvers

© 2022 - 2024 — McMap. All rights reserved.