Socket
Socket
Sign inDemoInstall

@rula/feathers-authentication-cas

Package Overview
Dependencies
13
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @rula/feathers-authentication-cas

A Central Authentication Service (CAS) strategy for @feathersjs/authentication using Passport.


Version published
Maintainers
1
Created

Readme

Source

A Central Authentication Service (CAS) strategy for @feathersjs/authentication using Passport.

Installation

npm install @rula/feathers-authentication-cas --save

Note: This is only compatible with feathers-authentication^1.x.

Example

const feathers = require('@feathersjs/feathers');
const authentication = require('feathers-authentication');
const jwt = require('feathers-authentication-jwt');
const cas = require('@rula/feathers-authentication-cas');

const app = feathers();

//Setup authentication
app.configure(authentication(settings));
app.configure(jwt());
app.configure(cas({
  casUrl: "https://cas.example.com",
  serviceBaseUrl: "http://localhost:8080",
  servicePath: "/login/validate",
  version: "3.0",
  useSAML: false,
  path: "/login",
  failureRedirect: "/login",
  successRedirect: "/",
  propertyMap: {
    isFromNewLogin: "newLogin",
    longTermAuthenticationRequestTokenUsed: "longAuth"
  }
}));

Now starting the test server npm start and opening a browser to localhost:8080/login should redirect to your CAS login provider. Upon successful login, you will be redirected back to / while being logged in and any futher page authentication can be done with the JWT.

License

Copyright (c) 2018

Licensed under the MIT license

Keywords

FAQs

Last updated on 11 Jun 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc