npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ibmsecurity

v1.0.1

Published

Module that intercepts requests and perform security validation with MAS

Downloads

32

Readme

IBM Mobile Application Security (MAS) for Bluemix Service SDK

ATTENTION: This service is currently deprecated on Bluemix and will be completely removed shortly. Please use the 2nd generation of Bluemix MobileFirst Services.

BlueMix supports IBM's MobileFirst strategy by allowing you as a mobile developer to quickly incorporate pre-built, managed, and scalable cloud services into your mobile applications without relying on IT involvement. You can focus on building your mobile applications rather than the complexities of managing the back end infrastructure.

When you create a Mobile Cloud application, BlueMix provisions multiple services under a single application context. Your mobile application is given access to the following mobile services: Mobile Application Security, Push, and Mobile Data.

About the Mobile Cloud Services SDK

The IBM Mobile Application Security for Bluemix Service SDK is a JavaScript SDK that you use can inside a server-side Node.js JavaScript module. This SDK manages all the security integration with the Mobile Cloud Services in Bluemix. This module provides an express middleware filter that validates requests to your Node.js application.

Version: v1.0.0-20160421-1718

Installing the SDK

Install the ibmsecurity package with the npm package manager with the following command:

npm install ibmsecurity

Loading the SDK

After the SDK is installed, you can use the SDK within your application.

var mas = require('ibmsecurity');

Initializing the SDK

Configure the ibmsecurity SDK to enforce client whitelist security checks, access token security checks, or both against inbound requests. You can also configure the ibmsecurity package to require inbound requests to use HTTPS.

Enable Mobile Application Security (MAS) security checks for all service endpoints

var mas = require('ibmsecurity');   
var app = express();
app.use(mas());

Configure the MAS express middleware before other application middleware that requires MAS-provided security checks. That is, put the app.use(mas()) line before the app.use() or app.router() lines that are associated with application endpoints that require MAS security checks.

Require HTTPS for all service endpoints

    var mas = require('ibmsecurity');   
    var app = express();
    app.use(mas('requireSSL'));
    app.use(mas());

You can configure MAS to enforce HTTPS with or without being configured to provide MAS security checks. If both are configured, ensure the app.use(mas('requireSSL')) line occurs before app.use(mas()) so that HTTPS enforcement occurs before the security checks.

License information

Licensed Materials - Property of IBM (C) Copyright IBM Corp. 2013, 2015. All Rights Reserved. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.