{"id":25046114,"url":"https://github.com/digi1874/sso-web","last_synced_at":"2025-03-31T01:22:11.519Z","repository":{"id":97327148,"uuid":"267283700","full_name":"digi1874/sso-web","owner":"digi1874","description":"Simple Single Sign-On","archived":false,"fork":false,"pushed_at":"2020-05-27T12:42:16.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T06:42:31.003Z","etag":null,"topics":["auth","jwt","sso"],"latest_commit_sha":null,"homepage":"https://login.ys1994.nl/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digi1874.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-05-27T09:59:58.000Z","updated_at":"2020-05-27T12:35:27.000Z","dependencies_parsed_at":"2024-03-13T21:03:18.738Z","dependency_job_id":null,"html_url":"https://github.com/digi1874/sso-web","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digi1874%2Fsso-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digi1874%2Fsso-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digi1874%2Fsso-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digi1874%2Fsso-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digi1874","download_url":"https://codeload.github.com/digi1874/sso-web/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246400583,"owners_count":20771045,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["auth","jwt","sso"],"created_at":"2025-02-06T06:35:15.556Z","updated_at":"2025-03-31T01:22:11.478Z","avatar_url":"https://github.com/digi1874.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 开放登录系统前端\r\n\r\n这是一个开放式登录系统，可供给任何网站做登录用。\r\n\r\n系统安全可靠，数据传输安全可靠，JWT验证安全可靠。使用非对称加密后发给数据，不怕传输数据被拦截，服务器临时生成密钥，任何人都没法查看密钥。JWT的密钥也是服务器运行时随机生成。\r\n\r\n* [前端网站](https://login.ys1994.nl/)\r\n* [后端接口项目](https://github.com/digi1874/sso-api)\r\n\r\n### 使用者\r\n* [影视1994](https://www.ys1994.nl/)\r\n\r\n------------------------\r\n\r\n## 构建\r\n``` bash\r\n# 安装依赖\r\n$ yarn\r\n\r\n# 开发，开启http://localhost:9021/\r\n$ yarn serve\r\n\r\n# 生成静态文件在dist文件夹\r\n$ yarn build\r\n```\r\n\r\n------------------------\r\n\r\n## 使用说明\r\n第三方的网站登录注册链接指向 -\u003e 开放登录系统链接 -\u003e 用户在开放登录系统登录注册后 -\u003e 带上JWT返回到第三方的网站 -\u003e 第三方的网站后端拿到JWT -\u003e 发JWT给开放登录系统验证接口 -\u003e 通过验证 -\u003e 第三方的网站后端存储JWT -\u003e 以后自行验证有效时间即可\r\n\r\n* 链接\r\n  \u003e 开放登录系统链接参数：https://login.ys1994.nl?title=网页标题\u0026redirect=返回链接\u0026bgImg=背景样式(style.backgroundImage)\r\n\r\n  \u003e 登录注册后跳转回链接：返回链接?(/\u0026)jwt=payload.signature\r\n  \u003e\u003e jwt 中的 payload 存储了用户id、ip地址、有效时间\u003cbr\u003e\r\n  \u003e\u003e jwt header 不返回，是因为对前端没有用，而且是个固定值。\r\n\r\n  \u003e 修改密码链接：https://login.ys1994.nl/password?signature=signature\u0026title=网页标题\u0026bgImg=背景样式(style.backgroundImage)\r\n\r\n------------------------\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigi1874%2Fsso-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigi1874%2Fsso-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigi1874%2Fsso-web/lists"}