Giter VIP home page Giter VIP logo

Comments (6)

cfreyer avatar cfreyer commented on May 25, 2024 4

Discovered that this is a token-relate issue. Repro case:

  1. generate an app, start it, login as admin (and check the "remember me" box)
  2. shutdown the app, delete it on disk
  3. generate another app, start it, repeat the same login process
    Login fails due to leftover jhi-authenticationToken in browser local storage.
    Delete the token & try again...should be successful.

This happened to me because I ran the generator multiple times (testing different front-ends).
Might happen to others if they generate or use multiple jhipster apps on the same host/port.

This isn't strictly a defect, but has to do with token management.

from generator-jhipster.

mraible avatar mraible commented on May 25, 2024

Using h2 disk-based persistence worked fine for me when I tried it with 8.1.0 and Angular last week as part of my jhipster8-demo tutorial and screencast.

from generator-jhipster.

github-actions avatar github-actions commented on May 25, 2024

JHipster has completed the sample check
.yo-rc.json: valid
Entities JDL: blank
Application: successfully generated
Frontend check: success
Backend check: success
E2E check: success

This check uses jhipster info output from the issue description to generate the sample.
Bug report that does not contain this information will be marked as invalid.

from generator-jhipster.

mshima avatar mshima commented on May 25, 2024

I could not reproduce:

jhipster from-issue 24608
cd jhipster-samples/24608
./mvnw

user/user 👍
admin/admin 👍

from generator-jhipster.

cevheri avatar cevheri commented on May 25, 2024

Discovered that this is a token-relate issue. Repro case:

  1. generate an app, start it, login as admin (and check the "remember me" box)
  2. shutdown the app, delete it on disk
  3. generate another app, start it, repeat the same login process
    Login fails due to leftover jhi-authenticationToken in browser local storage.
    Delete the token & try again...should be successful.

This happened to me because I ran the generator multiple times (testing different front-ends). Might happen to others if they generate or use multiple jhipster apps on the same host/port.

This isn't strictly a defect, but has to do with token management.

thanks @cfreyer. it works in private window

from generator-jhipster.

mshima avatar mshima commented on May 25, 2024

This is a bug. Probably happens with expired jwt token too.

from generator-jhipster.

Related Issues (20)

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.