├── .github ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE │ ├── Bug_report.md │ ├── Custom.md │ └── Feature_request.md ├── pull_request_template.md └── repository-open-graph.png ├── .travis.yml ├── LICENSE ├── Makefile ├── README.md ├── demo ├── Makefile ├── README.md ├── admin │ ├── package-lock.json │ ├── package.json │ ├── public │ │ ├── favicon.ico │ │ ├── icon-48x48.png │ │ ├── index.html │ │ └── robots.txt │ └── src │ │ ├── App.js │ │ ├── App.test.js │ │ ├── authProvider.js │ │ ├── dataProvider.js │ │ ├── inMemoryJWT.js │ │ ├── index.js │ │ ├── setupTests.js │ │ └── users │ │ └── index.js ├── back │ ├── cli │ │ └── create-user.js │ ├── knexfile.js │ ├── migrations │ │ └── 20200512072137_init-db.js │ ├── package-lock.json │ ├── package.json │ └── src │ │ ├── config.js │ │ ├── index.js │ │ ├── index.spec.js │ │ ├── toolbox │ │ ├── authentication │ │ │ ├── jwtMiddleware.js │ │ │ ├── refreshTokenRepository.js │ │ │ └── router.js │ │ ├── dbConnexion.js │ │ ├── middleware │ │ │ └── db.js │ │ └── rest-list │ │ │ ├── filters-helpers.js │ │ │ ├── filters-helpers.spec.js │ │ │ ├── index.js │ │ │ ├── pagination-helpers.js │ │ │ ├── pagination-helpers.spec.js │ │ │ ├── query-parameters-helpers.js │ │ │ ├── query-parameters-helpers.spec.js │ │ │ ├── sort-helpers.js │ │ │ └── sort-helpers.spec.js │ │ └── user-account │ │ ├── repository.js │ │ ├── router.js │ │ ├── user.js │ │ └── user.spec.js ├── demo.env └── docker-compose.yml ├── doc ├── blogPostFr.md ├── jwtSessionFirstTry.gif ├── jwtSessionSecondTry.gif ├── raInMemoryJwtRefresh.gif ├── raInMemoryJwtTwoTabs.gif └── refreshToken.gif ├── package.json └── src └── index.js /.github/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/.github/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/.github/CONTRIBUTING.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/Bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/.github/ISSUE_TEMPLATE/Bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/Custom.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/.github/ISSUE_TEMPLATE/Custom.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/Feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/.github/ISSUE_TEMPLATE/Feature_request.md -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/.github/pull_request_template.md -------------------------------------------------------------------------------- /.github/repository-open-graph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/.github/repository-open-graph.png -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/README.md -------------------------------------------------------------------------------- /demo/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/Makefile -------------------------------------------------------------------------------- /demo/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/README.md -------------------------------------------------------------------------------- /demo/admin/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/package-lock.json -------------------------------------------------------------------------------- /demo/admin/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/package.json -------------------------------------------------------------------------------- /demo/admin/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/public/favicon.ico -------------------------------------------------------------------------------- /demo/admin/public/icon-48x48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/public/icon-48x48.png -------------------------------------------------------------------------------- /demo/admin/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/public/index.html -------------------------------------------------------------------------------- /demo/admin/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/public/robots.txt -------------------------------------------------------------------------------- /demo/admin/src/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/src/App.js -------------------------------------------------------------------------------- /demo/admin/src/App.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/src/App.test.js -------------------------------------------------------------------------------- /demo/admin/src/authProvider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/src/authProvider.js -------------------------------------------------------------------------------- /demo/admin/src/dataProvider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/src/dataProvider.js -------------------------------------------------------------------------------- /demo/admin/src/inMemoryJWT.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/src/inMemoryJWT.js -------------------------------------------------------------------------------- /demo/admin/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/src/index.js -------------------------------------------------------------------------------- /demo/admin/src/setupTests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/src/setupTests.js -------------------------------------------------------------------------------- /demo/admin/src/users/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/admin/src/users/index.js -------------------------------------------------------------------------------- /demo/back/cli/create-user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/cli/create-user.js -------------------------------------------------------------------------------- /demo/back/knexfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/knexfile.js -------------------------------------------------------------------------------- /demo/back/migrations/20200512072137_init-db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/migrations/20200512072137_init-db.js -------------------------------------------------------------------------------- /demo/back/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/package-lock.json -------------------------------------------------------------------------------- /demo/back/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/package.json -------------------------------------------------------------------------------- /demo/back/src/config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/config.js -------------------------------------------------------------------------------- /demo/back/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/index.js -------------------------------------------------------------------------------- /demo/back/src/index.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/index.spec.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/authentication/jwtMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/authentication/jwtMiddleware.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/authentication/refreshTokenRepository.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/authentication/refreshTokenRepository.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/authentication/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/authentication/router.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/dbConnexion.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/dbConnexion.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/middleware/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/middleware/db.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/rest-list/filters-helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/rest-list/filters-helpers.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/rest-list/filters-helpers.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/rest-list/filters-helpers.spec.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/rest-list/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/rest-list/index.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/rest-list/pagination-helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/rest-list/pagination-helpers.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/rest-list/pagination-helpers.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/rest-list/pagination-helpers.spec.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/rest-list/query-parameters-helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/rest-list/query-parameters-helpers.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/rest-list/query-parameters-helpers.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/rest-list/query-parameters-helpers.spec.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/rest-list/sort-helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/rest-list/sort-helpers.js -------------------------------------------------------------------------------- /demo/back/src/toolbox/rest-list/sort-helpers.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/toolbox/rest-list/sort-helpers.spec.js -------------------------------------------------------------------------------- /demo/back/src/user-account/repository.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/user-account/repository.js -------------------------------------------------------------------------------- /demo/back/src/user-account/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/user-account/router.js -------------------------------------------------------------------------------- /demo/back/src/user-account/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/user-account/user.js -------------------------------------------------------------------------------- /demo/back/src/user-account/user.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/back/src/user-account/user.spec.js -------------------------------------------------------------------------------- /demo/demo.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/demo.env -------------------------------------------------------------------------------- /demo/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/demo/docker-compose.yml -------------------------------------------------------------------------------- /doc/blogPostFr.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/doc/blogPostFr.md -------------------------------------------------------------------------------- /doc/jwtSessionFirstTry.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/doc/jwtSessionFirstTry.gif -------------------------------------------------------------------------------- /doc/jwtSessionSecondTry.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/doc/jwtSessionSecondTry.gif -------------------------------------------------------------------------------- /doc/raInMemoryJwtRefresh.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/doc/raInMemoryJwtRefresh.gif -------------------------------------------------------------------------------- /doc/raInMemoryJwtTwoTabs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/doc/raInMemoryJwtTwoTabs.gif -------------------------------------------------------------------------------- /doc/refreshToken.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/doc/refreshToken.gif -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/package.json -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/marmelab/ra-in-memory-jwt/HEAD/src/index.js --------------------------------------------------------------------------------