New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

fary-sso-proxy

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fary-sso-proxy

project description

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

fary-sso-proxy

A fary/koa2 based middleware for sso proxy.

NPM version build status

Introduction

It is a dev tool with which you can login a sso server through a simple ajax.

The sso server is based on Apereo CAS

You'd better not use it in production, but use standard SSO process instead.

Install

npm i fary-sso-proxy

Usage

const createApp = require('fary');
const farySSOProxy = require('fary-sso-proxy');

createApp({
  middlewares: [
    farySSOProxy({
      authUrl: 'http://${casServerHost}?service=http://${businessServerHost}/${servicePath}',
      method: 'POST',
      path: '/api/dev-helper/sso',
      parseResult: () => ({}),
    })
  ]
})

Note: this middleware only works directly in Node 7.6+(async/await), or you can use babel to transform the source code.

options

  • authUrl: the sso authorization url
  • method?: default POST; the request method
  • path?: default /api/dev-helper/sso; the request path
  • parseResult?: default () => ({}); the parser to restructure the response data to your client

FAQs

Package last updated on 17 Oct 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc