Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 12 2021 11:51
    akkie closed #493
  • Sep 12 2021 11:51
    akkie closed #545
  • Sep 12 2021 11:51
    akkie closed #551
  • Sep 12 2021 11:46

    akkie on master

    Update README.md (compare)

  • Sep 12 2021 11:46

    akkie on master

    Update README.md (compare)

  • Jun 22 2020 01:20
    asazernik commented #579
  • Jun 22 2020 01:07
    asazernik edited #579
  • Jun 22 2020 01:01
    asazernik opened #579
  • May 04 2020 11:09

    akkie on gh-pages

    updated site (compare)

  • May 04 2020 10:58

    akkie on gh-pages

    updated site (compare)

  • May 04 2020 10:56

    akkie on gh-pages

    updated site (compare)

  • May 04 2020 10:45

    akkie on master

    Fixed Auth0ProfileParser to get… (compare)

  • May 04 2020 10:45
    akkie closed #578
  • May 04 2020 10:44
    akkie commented #578
  • May 03 2020 03:23
    coveralls commented #578
  • May 03 2020 03:02
    ymotchi opened #578
  • Feb 27 2020 17:45
    rorygraves commented #569
  • Feb 27 2020 16:39

    akkie on gh-pages

    updated site (compare)

  • Feb 27 2020 16:33

    akkie on gh-pages

    updated site (compare)

  • Feb 27 2020 16:30
    akkie closed #569
Remi Guittaut
@remiguittaut
Hi everyone. I have a question about something which should be pretty common use-case, but I can't find any solution. When a user tries to access a protected section of the website, he's naturally redirected to sign-in / sign-up. However, in all examples I could find, once the authentication/registration is successful, he's redirected to the homepage. I would like, as it's natural for the user, that he'd redirected to the page he was requesting instead (problem generally solved by using a "returnUrl" query parameter when redirected to the sign-in page). Do you have any example of solving that problem?
Albaro Pereyra
@AlbaroPereyra
I don’t have an example of that but, I have done this before. One must save the returnUrl adding this to a cookie makes sense. Then before loading the home page look for this returnUrl parameter in the cookie if found clear the value and redirect.
Luís Campos
@LLCampos
Where can I find release notes for 7.0.0? :)
Christian Kaps
@akkie
Silhouette 7 has no new features. It's mainly a Play 2.8 update
Luís Campos
@LLCampos
Right. Is that info anywhere? :) (meaning, that it is only a Play 2.8 update)
Christian Kaps
@akkie
No, there is no release info. If you look at the migration guide, then you can see that there is nothing todo on Silhouette side expect to update the dependencies to version 7.0.0
Please let me know if you have further questions
gobandoGH
@gobandoGH
Hi, can you please advise on existing APIs that provides secure credentials saving/recovery in the android environment ?
Thank you
Christian Kaps
@akkie
Hi, could you please be a bit more detailed?
gobandoGH
@gobandoGH
Yes. In a web environment, user email and password are saved locally on the browser. I like to provide this same facility when login in android . Thanks
Christian Kaps
@akkie
Sorry, I'm not an Android developer. But there must be something
similar in Android
To store the credentials
gobandoGH
@gobandoGH
Thank you
Luís Campos
@LLCampos

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.

Phillip Taylor
@PhillipTaylor
Here's a new example project I wrote on connecting Silhouette to a Keycloak backend. https://github.com/philliptaylorpro/keycloak-seed . I hope people find it useful. There's a new Provider that I think it might be nice for you to adopt. Any interest in cleaning it up and taking it into the mainline product?
Christian Kaps
@akkie
@LLCampos When using a JWTAuthenticator for the FakeRequestSilhouette 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.
@PhillipTaylor That would be awesome :+1:
Luís Campos
@LLCampos
Thanks, @akkie, will have a try!
patrickalexanderross
@patrickalexanderross
logging on the latest silhouette doesn't seem to work, I've tried implementing all the official play 2.8 methods(https://www.playframework.com/documentation/2.8.x/ScalaLogging), even removing logging from scc components and adding, I'm going to try using sl4j next, but thought I'd check here, as I thought logs should work out of the box, but they don't register on the command console.
patrickalexanderross
@patrickalexanderross
image.png
image.png
patrickalexanderross
@patrickalexanderross
I needed to change root level to INFO in the logback.xml config file
gavinbaumanis
@gavinbaumanis

@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.

Christian Kaps
@akkie
@gavinbaumanis my spare free time goes to the framework agnostic version of Silhouette. But contributions are always welcome
gavinbaumanis
@gavinbaumanis
@akkie I am happy to provde what I have, but like I said it is not a lot. It is simply the parts “I” use - not a complete implementation of LDAP.
The ldapSDK (that I use) is an open-sourced Java library for LDAP queries.
LDAP is simply a protocol, and not a framework. Microsoft has their Active Dirrectory version, the now defunct, Novell Netware had theirs and there are plenty of Linux distros with their flavour, too. _ Perhaps - I don't think I understand your "framework agnostic” comment in this context : Sorry.
And I realise it might seem like I am just being lazy and trying to pass the work off onto someone else - but it really is a matter of skill-level, not enthusiasm.
gobandoGH
@gobandoGH
Hi @Akkie: I have a Silhouette 6.1 based project using Webjars b3. After some weeks untouched, I did some modifications to the code and was able to build, compile a few times and execute it without errors. Suddenly, the following compile error occurred:
“sbt.librarymanagement.ResolveException: unresolved dependency: com.adrianhurt#play-bootstrap_2.12;1.5-P27-B3-SNAPSHOT: not found”.
Why this error might happen ?
Appreciate your help
Thank you
It seems that I have a library search problem
after building the project, I guess
gobandoGH
@gobandoGH
Solved, @akkie. Changed to dependency to: "com.adrianhurt" %% "play-bootstrap" % "1.6-P27-B3-SNAPSHOT
I noticed your latest Silhouette Seed Template example is based on play-bootstrap 4. The AbstractAuthController class is single injected with SilhouetteControllerComponents and constructors mechanism for html´s has also changed.
What are the benefits of those changes and where I could find a migration documentation on this ?
Thank you
Serhii Dashko
@sergeda
Hello everyone. Is it possible to use this library with http4s server?
Christian Kaps
@akkie
@sergeda With minutemen/silhouette#32 it will
I currently replace the HTTP client part with sttp. Then I think it will have a good status to merge the PR. With some help, a first release would be possible in the next few months
Serhii Dashko
@sergeda
Great. Thank you @akkie Looking forward to that release
Michael Pigott
@mikepigott
Hello, I just published https://github.com/ironhorsesoftware/silhouette which is a set of Slick DAOs and Repositories for storing CasInfo, GoogleTotpInfo, OAuth1Info, OAuth2Info, OpenIDInfo, PasswordInfo, BearerTokenAuthenticator, CookieAuthenticator, and JWTAuthenticator instances in a relational database.
It’s a project that I put on hold until recently, so right now the only GitHub package is for Scala 2.12 / Play 2.7 / Silhouette 6.0
(I plan to update these in the next week or so. I’m still figuring out how to use GitHub packages effectively.)
Michael Pigott
@mikepigott
That same package is now available on the Maven Central Repository: https://search.maven.org/artifact/com.ironhorsesoftware.silhouette/silhouette-persistence_2.12/0.6.0/jar
Christian Kaps
@akkie
@mikepigott :+1:
Tudor Anastasiu
@skypper
Hey guys, check out https://github.com/skypper/play-scala-rest-boilerplate.g8, my brand new Play framework template for REST applications which heavily uses Silhouette framework. I would appreciate any feedback.
gobandoGH
@gobandoGH
Hi, it seems that akka-quartz-scheduler version in Silhouette Seed Template
should be "1.8.3-akka-2.6.x" as per enragedginger documentation For Akka 2.6.x and Scala 2.13.x.
Cheers
Christian Kaps
@akkie
@gobandoGH could you please create a PR?
gobandoGH
@gobandoGH
Done
Christian Kaps
@akkie
Thanks
gobandoGH
@gobandoGH
Hi, successful migration to Silhouette 7.0.0. No pain. Thank you
Christian Kaps
@akkie
:+1:
Szymon Smykała
@SzymonSmykala
Is there any working example for Silhouette 7.0.0 with REST controller? I found a lot of examples that are 3-4 years old and there are failing during build.
Aidar
@SunPj
@SzymonSmykala You can check out my sample project https://github.com/SunPj/silhouette-vuejs-app
Aidar
@SunPj
Oh sorry I didn't see that you need Silhouette 7.0.0. I hope I will have some free time to update my sample