Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active session functionality does not work for session-based authentication #25297

Closed
jperezdelafuente opened this issue Feb 22, 2024 · 2 comments · Fixed by #25336
Closed

Active session functionality does not work for session-based authentication #25297

jperezdelafuente opened this issue Feb 22, 2024 · 2 comments · Fixed by #25336

Comments

@jperezdelafuente
Copy link
Contributor

Overview of the issue

Active session functionality does not work for session-based authentication

  • In the h2 database, data is not recorded in the table JHI_PERSISTENT_TOKEN
  • The PersistentTokenRememberMeServices class has no uses

More info:

Reproduce the error

Login with admin / admin
Account -> Sessions
No sessions are listed

JHipster Version(s)

Jhipster 8.1

JHipster configuration
.yo-rc.json file
{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "session",
    "baseName": "prueba2",
    "buildTool": "maven",
    "cacheProvider": "ehcache",
    "clientFramework": "angular",
    "clientTestFrameworks": [],
    "clientTheme": "none",
    "creationTimestamp": 1708613977150,
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "devServerPort": 4200,
    "enableGradleEnterprise": null,
    "enableHibernateCache": true,
    "enableSwaggerCodegen": false,
    "enableTranslation": true,
    "entities": [],
    "feignClient": false,
    "gradleEnterpriseHost": null,
    "jhipsterVersion": "8.1.0",
    "languages": [
      "en"
    ],
    "messageBroker": false,
    "microfrontend": null,
    "microfrontends": [],
    "nativeLanguage": "en",
    "packageName": "com.mycompany.myapp",
    "prodDatabaseType": "oracle",
    "reactive": false,
    "searchEngine": false,
    "serverPort": null,
    "serverSideOptions": [],
    "serviceDiscoveryType": false,
    "testFrameworks": [],
    "websocket": false,
    "withAdminUi": true
  }
}
Browsers and Operating System

Ubuntu 22.04.2 LTS
OpenJDK 64-Bit Server VM Temurin-17.0.7+7 (build 17.0.7+7, mixed mode, sharing)
node: v18.18.2
npm: 9.8.1

  • [x ] Checking this box is mandatory (this is just to show you read everything)
Copy link
Contributor

github-actions bot commented Feb 22, 2024

JHipster has completed the sample check
.yo-rc.json: valid
Entities JDL:
Application: successfully generated
Frontend check: success
Backend check: failure
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.

@mshima
Copy link
Member

mshima commented Feb 23, 2024

The problem is in the frontend.
I will raise a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants