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)
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 ?
Cookie
header using your cookies from browser). Does it make sense?
@akkie : From Play documentation it follows that CSRF check arise when executing a POST method with an authorization header, both conditions set on the current JWT authentication issue.
Postman 403 Forbidden messages might be explained because no Cookie is provided in the request.
Disabling the CSRF filter adding nocsrf before the route, makes Postman to reply a 200 Ok message.
Enabling the logger level to TRACE in the logback file, provide the following:
[trace] p.a.m.PlayBodyParsers - Parsing AnyContent as json
[trace] p.a.m.ActionBuilder
KaTeX parse error: Can't use function '$' in math mode at position 5: anon$̲9 - Invoking ac…: anon$9 - Invoking action with request: POST /paymentToken
User not authenticated!
[trace] p.filters.CSRF - [CSRF] No check necessary
[trace] p.a.m.ActionBuilder
anon$9 - Invoking action with request: GET /signInStuck here!