Skip to content
프로젝트

소개

SAML SSO용 Node.js 라이브러리

개발 도구

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

samlify

Build Status npm version NPM Coverage

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

MIT

Copyright

Copyright (C) 2016-present Tony Ngan, released under the MIT License.

관련 프로젝트 살펴보기

불러오는 중…