generator-jhipster icon indicating copy to clipboard operation
generator-jhipster copied to clipboard

Active session functionality does not work for session-based authentication

Open jperezdelafuente opened this issue 1 year ago • 1 comments

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:

  • Improved remember-me mechanism https://www.jhipster.tech/security/#improved-remember-me-mechanism
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)

jperezdelafuente avatar Feb 22 '24 15:02 jperezdelafuente

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.

github-actions[bot] avatar Feb 22 '24 17:02 github-actions[bot]

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

mshima avatar Feb 23 '24 15:02 mshima