{"id":23838209,"url":"https://github.com/portrunban/node-authentication-panel","last_synced_at":"2026-06-23T03:31:51.662Z","repository":{"id":269470307,"uuid":"298254897","full_name":"portrunban/node-authentication-panel","owner":"portrunban","description":null,"archived":false,"fork":false,"pushed_at":"2020-09-24T11:16:38.000Z","size":420,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T05:48:40.774Z","etag":null,"topics":["authentication","node","node-js","webpanel"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/portrunban.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-24T11:15:00.000Z","updated_at":"2020-11-22T13:18:16.000Z","dependencies_parsed_at":"2024-12-23T19:47:26.858Z","dependency_job_id":"83fbbf23-a5c1-4742-9a93-a78ca5bf0434","html_url":"https://github.com/portrunban/node-authentication-panel","commit_stats":null,"previous_names":["portrunban/node-authentication-panel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/portrunban/node-authentication-panel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/portrunban%2Fnode-authentication-panel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/portrunban%2Fnode-authentication-panel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/portrunban%2Fnode-authentication-panel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/portrunban%2Fnode-authentication-panel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/portrunban","download_url":"https://codeload.github.com/portrunban/node-authentication-panel/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/portrunban%2Fnode-authentication-panel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34674702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","node","node-js","webpanel"],"created_at":"2025-01-02T16:53:13.374Z","updated_at":"2026-06-23T03:31:51.645Z","avatar_url":"https://github.com/portrunban.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RU\n\nРепозиторий представляет собой backend и frontend функционал авторизации администратора-пользователя на Node JS.\n\n### Панель аутентификации\n\nПри аутентификации пользователю выдаётся **JWT** токен и в дальнейшем при каждом заходе на страницу он проверяется на валидность. Токен несёт в себе payload ID пользователя MongoDB.\n\nДанные пользователя хранятся в **MongoDB**, пароль хранится в виде хэша **bcryptjs** с **Salt Length 12**\n\nТ.к. я использую эту панель только для администратора, то все значения заносятся в БД руками\n\n### Серверная часть\n\nПо архитектуре разведены: маршрутизация, представления, контроллеры и модели.  \nПодключены NPM.\n\n- Morgan - _логирование при development запуске_\n- express-rate-limit - _ограничение на количество запросов к серверу в час_\n- helmet - _защита заголовков_\n- express-mongo-sanitaze - _санитайзер объектов для замены спец символов_\n- xss-clean - санитайзер XSS\n\nИ другие стандартные модули для поддержки работы сервера.\n\n### ENV\n\nВ конфиг включены следующие переменные.\n\n```sh\nMONGO=mongodb+srv://example\nPORT=5000\nNODE_ENV=development\nJWT_SECRET=testsecretkey\nJWT_EXPIRES_IN=70d\nJWT_COOKIE_EXPIRES_IN=90\n```\n\n# EN\n\nThe repository is a backend and frontend functionality for administrator-user authorization on Node JS.\n\n### Authentication panel\n\nAfter authentication, the user receives the **JWT** token and then it is checked for validity every time the page is requested again. The token contains the MongoDB user's payload ID.\n\nThe user data is stored in **MongoDB**, the password is stored as a hash **bcryptjs** with **Salt Length 12**\n\nI use this panel only for the administrator, all values are entered in the database independently\n\n### Server part\n\nServer architecture contains routing, views, controllers, and models.\n\nDependens NPM.\n\n- Morgan - _logging. Only development_\n- express-rate-limit - _rate limit per hour_\n- helmet - _security HTTP header_\n- express-mongo-sanitaze - _sanitaze reserv key of MongoDB _\n- xss-clean - sanitaze XSS\n\nAnd other standard modules to support the work of the server.\n\n### ENV\n\nconfig.env contains this variable.\n\n```sh\nMONGO=mongodb+srv://example\nPORT=5000\nNODE_ENV=development\nJWT_SECRET=testsecretkey\nJWT_EXPIRES_IN=70d\nJWT_COOKIE_EXPIRES_IN=90\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fportrunban%2Fnode-authentication-panel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fportrunban%2Fnode-authentication-panel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fportrunban%2Fnode-authentication-panel/lists"}