Silhouette is an authentication library for Play Framework applications that supports several authentication methods, including OAuth1, OAuth2, OpenID, Credentials or custom authentication schemes.
akkie on master
Update README.md (compare)
akkie on master
Update README.md (compare)
akkie on gh-pages
updated site (compare)
akkie on gh-pages
updated site (compare)
akkie on gh-pages
updated site (compare)
akkie on master
Fixed Auth0ProfileParser to get… (compare)
akkie on gh-pages
updated site (compare)
akkie on gh-pages
updated site (compare)
Hello :)
For tests. When faking a Env
based on JWTAuthenticator
do I need to do anything different from what is described on https://www.silhouette.rocks/docs/testing#section-fake-environment?
I can successfully fake a Env
based on SessionAuthenticator
, but when I switch to JWTAuthenticator
, it doesn't work anymore (as in, I start to get 401
responses in my tests), so I suspect I might be missing something.
JWTAuthenticator
for the FakeRequest
Silhouette uses the [FakeJWTAuthenticatorService|https://github.com/mohiva/play-silhouette/blob/master/silhouette-testkit/app/com/mohiva/play/silhouette/test/Fakes.scala#L155]. This uses a shared secret which gets randomly set every time a FakeJWTAuthenticatorService
is instantiated. So you must be sure that only one environment will be used in your test.
@akkie : do you have any enthusiasm for including LDAP?
At the moment I am using;
https://github.com/pingidentity/ldapsdk
But it would be nice to have all my authentication options in the same place.
I am happy to create a simple app with the wrappers I use… But it is really “tight” in its usage: in that I am not using every feature, so it might be of limited use.
@SzymonSmykala You can check out my sample project https://github.com/SunPj/silhouette-vuejs-app
sbt
seems to fail loading this project. Did anyone try to run it recently ?