express-did-auth:快速DID身份验证

上传者: 42122838 | 上传时间: 2022-08-18 11:43:14 | 文件大小: 211KB | 文件类型: ZIP
express-did-auth 快速DID身份验证 npm i @rsksmart/express-did-auth 该模块包括要在Express应用程序中使用的即插即用身份验证框架,它实现了由RIF Identity设计的DID身份验证协议。 特征 注册流程以验证用户的DID和可验证的凭证 登录流程以验证用户的DID 使用Express中间件对请求进行身份验证 登出流程 用法 这种方法会将以下端点添加到您的应用程序: GET /request-signup/:did 开机自检/signup GET /request-auth/:did 开机自检/auth POST /refresh-token POST /logout import express from 'express' import setupApp from '@rsksmart/express-did-

文件下载

资源详情

[{"title":"( 43 个子文件 211KB ) express-did-auth:快速DID身份验证","children":[{"title":"express-did-auth-main","children":[{"title":".eslintrc.json <span style='color:#111;'> 509B </span>","children":null,"spread":false},{"title":".github","children":[{"title":"workflows","children":[{"title":"ci.yml <span style='color:#111;'> 474B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"types.ts <span style='color:#111;'> 2.29KB </span>","children":null,"spread":false},{"title":"constants.ts <span style='color:#111;'> 768B </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 3.28KB </span>","children":null,"spread":false},{"title":"classes","children":[{"title":"session-manager.ts <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false},{"title":"request-counter.ts <span style='color:#111;'> 1006B </span>","children":null,"spread":false},{"title":"challenge-verifier.ts <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false}],"spread":true},{"title":"errors.ts <span style='color:#111;'> 878B </span>","children":null,"spread":false},{"title":"defaults.ts <span style='color:#111;'> 604B </span>","children":null,"spread":false},{"title":"config-adapters.ts <span style='color:#111;'> 1.70KB </span>","children":null,"spread":false},{"title":"jwt-utils.ts <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"factories","children":[{"title":"express-middleware-factory.ts <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"request-auth-factory.ts <span style='color:#111;'> 405B </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 372B </span>","children":null,"spread":false},{"title":"logout-factory.ts <span style='color:#111;'> 612B </span>","children":null,"spread":false},{"title":"refresh-token-factory.ts <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"authentication-factory.ts <span style='color:#111;'> 2.54KB </span>","children":null,"spread":false},{"title":"cookies.ts <span style='color:#111;'> 623B </span>","children":null,"spread":false},{"title":"request-signup-factory.ts <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"tsconfig.json <span style='color:#111;'> 561B </span>","children":null,"spread":false},{"title":"LICENSE <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":"challenge-verifier.test.ts <span style='color:#111;'> 5.18KB </span>","children":null,"spread":false},{"title":"request-counter.test.ts <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"refresh-token-factory.test.ts <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"jwt-utils.test.ts <span style='color:#111;'> 3.89KB </span>","children":null,"spread":false},{"title":"express-middleware-factory.test.ts <span style='color:#111;'> 3.14KB </span>","children":null,"spread":false},{"title":"utils.ts <span style='color:#111;'> 4.48KB </span>","children":null,"spread":false},{"title":"setup-app.cookies.integration.test.ts <span style='color:#111;'> 5.19KB </span>","children":null,"spread":false},{"title":"setup-app.no-cookies.integration.test.ts <span style='color:#111;'> 3.20KB </span>","children":null,"spread":false},{"title":"request-signup-factory.test.ts <span style='color:#111;'> 2.65KB </span>","children":null,"spread":false},{"title":"session-manager.test.ts <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"logout-factory.test.ts <span style='color:#111;'> 2.56KB </span>","children":null,"spread":false},{"title":"setup-app.cookies.integration.multiple-sessions.test.ts <span style='color:#111;'> 4.17KB </span>","children":null,"spread":false},{"title":"setup-app.middleware.test.ts <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"request-auth-factory.test.ts <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"authentication-factory.test.ts <span style='color:#111;'> 8.91KB </span>","children":null,"spread":false}],"spread":false},{"title":"jest.config.js <span style='color:#111;'> 168B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 3.86KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 36B </span>","children":null,"spread":false},{"title":".eslintignore <span style='color:#111;'> 17B </span>","children":null,"spread":false},{"title":"package-lock.json <span style='color:#111;'> 704.02KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 2.10KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明