Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flive-bp-adfs

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flive-bp-adfs

ADFS auth plugin for flive boilerplate

  • 0.1.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

add ADFS single sign-on to flive-boilerplate

Check adfs branch of the flive-boilerplate for integration details

Config example :

auth: {
    jwt: {
      options: {
        algorithm: 'HS256',
        issuer: 'flive-boilerplate',
        audience: 'flive-user',
        expiresIn: '7 days'
      },
      secret: 'very-long-secret-here'
    },
    adfs: {
      paths: {
        initiatePath: '/saml2',
        callbackPath: '/saml2',
        successRedirect: '/',
        failureRedirect: '/login'
      },
      validateProfile: (profile, app, done) => {
        // transform raw saml data to a user object
        // and fetch or insert user in DB if needed
        const user = { email: profile.nameID };
        done(null, user);
      },
      login: async (user, ctx) => {
        /* override passport login() if you want */
        //return ctx.login(user)
        /* setting the boilerplates JWT token here */
        return ctx.cookies.set('jwt', ctx.app.context.services.jwtSign({ user }));
      },
      samlConfig: {
        entryPoint: 'adfs',
        callbackUrl: 'https://saml.sp.sigfox.com/saml2',
        issuer: 'saml.sp.sigfox.com',
        cert: fs.readFileSync('/path/to/adfsCertificate')
      }
    }
  }

FAQs

Package last updated on 10 Apr 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