项目
在 GitHub 查看
tngan/samlify
关于
用于 SAML SSO 的 Node.js 库
开发工具实测星标增长
- 24小时
- 0
- 7天
- +1
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文samlify
Node.js library for SAML SSO
Installation
npm install samlify
Schema validation
samlify validates every incoming SAML message against the XML schema, so register a schema validator before anything else. Pick one of the validator modules:
import * as samlify from 'samlify';
import * as validator from '@authenio/samlify-xsd-schema-validator'; // requires Java
// import * as validator from '@authenio/samlify-validate-with-xmllint'; // requires xmllint
// import * as validator from '@authenio/samlify-node-xmllint';
samlify.setSchemaValidator(validator);
You can also supply your own validator. Skipping validation means accepting messages that may be malicious, so only do this if you understand the risk:
samlify.setSchemaValidator({
validate: (response: string) => {
/* implement your own, or always resolve to skip validation */
return Promise.resolve('skipped');
}
});
Get Started
const saml = require('samlify');
See the full documentation here.
Example
samlify-starter — starter example for getting up and running with samlify
Development
yarn
yarn test
PRs are welcome, as are links to examples that use samlify with other frameworks. See CONTRIBUTING.md.
Talks
An introduction to Single Sign On
License
Copyright
Copyright (C) 2016-present Tony Ngan, released under the MIT License.
探索相关项目
加载中…