@ustack/egg-saml2-idp

npm i @ustack/egg-saml2-idp --save

Usage no npm install needed!

<script type="module">
  import ustackEggSaml2Idp from 'https://cdn.skypack.dev/@ustack/egg-saml2-idp';
</script>

README

egg-saml2-idp

Install

npm i @ustack/egg-saml2-idp --save

Usage

// {app_root}/config/plugin.js
exports.saml2Idp = {
  enable: true,
  package: '@ustack/egg-saml2-idp',
};

Configuration

// {app_root}/config/config.default.js
exports.saml2Idp = {
  issuer: 'http://127.0.0.1:7001',
  cert: 'x509 cert content',
  key: 'x509 private key content',
  redirectEndpointPath: '/sso/saml2.0/authn',
  postEndpointPath: '/sso/saml2.0/authn',
  logoutEndpointPaths: {
    redirect: '/sso/saml2.0/logout',
  },
};

see config/config.default.js for more detail.

Example

Questions & Suggestions

Please open an issue here.

License

MIT