Git Product home page Git Product logo

play-silhouette-credentials-seed's People

Contributors

adrianhurt avatar nemoo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

play-silhouette-credentials-seed's Issues

play 2.6

Howdy,

First of many thx for this awesome seed, i really like your code style as an basis seed project.

Question: is there any change on a play 2.6 update within this seed...

Thx upfront.

Deep link into the application

First of all, I love this seed, it is very helpfull!

When I deep link into a web application that is not a single page app and I have just submitted my correct credentials, I would expect to land on the page that the deep link described , not always on the index page.

This is pretty important if a deep link looks like this:
https://example.com/cars/893

Then the user would have to search for car 893 again within the app because the information from his deep link has been ignored.

I think that feature should be added to this example. How could this be done?

[error] lessc.js:145 TypeError: undefined is not a function

I ran into this error when I sbt run this project using openjdk version "1.8.0_91". I have tried delete project/target and project/project as mentioned in sbt/sbt-less#80 but it didn't help. Any pointer that could help me to investigate this issue? Thanks

[info] Compiling 4 Scala sources and 1 Java source to /workspace/play
ground/play-silhouette-credentials-seed/target/scala-2.11/classes...
[info] LESS compiling on 1 source(s)
[error] /workspace/playground/play-silhouette-credentials-seed/target
/less/lessc.js:145
[error]                 .then(handleResult, handleLessError);
[error]                  ^
[error] TypeError: undefined is not a function
[error]     at /workspace/playground/play-silhouette-credentials-seed
/target/less/lessc.js:145:18
[error]     at fs.js:334:14
[error]     at FSReqWrap.oncomplete (fs.js:95:15)

Play 2.5 breaks seed

I was trying to build this seed (with Silhouette 4.0 and Play 2.5) but it breaks a lot. I'm aware that there are a few changes in 2.5. Do you mind updating this seed so it can be used with Play 2.5 ?

Thanks!

Application.selectLang should be a UserAwareAction, not InsecureAction

with InsecureAction, if a user is already logged in and changes language, they get "unauthorized" response as the redirection in Application.selectLang seems to ignore the fact they are already logged in. changing is to UserAwareAction got the right effect: when logged in, clicking the language simply re-rendered the page in the selected language.

Question: how does AuthenticatorService tracks per user signin info ?

I am using this repo for authentication. Here is my understanding before I describe my question:

  1. By default it is using stateless Cookie approach where the Cookie is not stored at the server.
  2. When client sends the request with the Cookie then in Auth.scala the Cookie is validated using AuthenticatorService.
  3. On signOut the authenticator is discarded.

My question:
Where is the object for AuthenticatorService for each user stored ? I don't see any storage defined anywhere for this.
Refer these two code snippets:
Inside method Auth.scala:authenticate

for {
                authenticator <- env.authenticatorService.create(loginInfo).map(authenticatorWithRememberMe(_, rememberMe))
                cookie <- env.authenticatorService.init(authenticator)
                result <- env.authenticatorService.embed(cookie, Redirect(targetUri).withSession(request.session - "ENTRY_URI"))

Inside method Auth.scala:signOut
env.authenticatorService.discard(request.authenticator, Redirect(routes.Application.index))

Thanks.
Nikhil

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.