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

fakeminder

v0.0.3

Published

Fake or mock implementation of CA SiteMinder to use for developer testing

Downloads

1

Readme

FakeMinder

A fake implementation of CA's SiteMinder product that enables easy development of your SiteMinder integrated application without installing SiteMinder on your development environment.

Runs as a reverse proxy using the fabulous node-http-proxy library and injects custom logic to protect a target site, handle login and manage SM session state.

Motivation

Because testing an application that integrates with SiteMinder is hard if you cannot deploy SiteMinder to all of your development and test environments.

Because this is my first Node.js project and it seemed like a good fit for learning Node!

DISCLAIMER This software is in no way affiliated with or intends to be a representation of SiteMinder. Its intended use is limited to a mock version of the application for testing purposes only. This software does not intend to replicate any production ready functionality found in SiteMinder.

Features

Block access to a protected folder

  • Configure protected folder in config.json.
  • Validate presence of SMSESSION cookie.
  • Redirect to configured URL for custom authentication error handling.

Authentication

  • Intercept and handle POST requests to a configured login FCC.
  • Redirect to the TARGET after credential validation.
  • Assign a FORMCRED cookie to track credential validation results.
  • Redirect custom URLs for handling login failures.

Other Behaviors

  • Re-writes URLs in Location headers when the target application sends a 302 redirect to the client.

Coming Soon

  • Support for change password logic using smpwservices.fcc.

Installation

npm install fakeminder -g

It is preferable to install the package to your global store so you can use the command line interface.

If you are installing from the source repository then run the following from the root folder of the project repository.

npm install

Usage

Viewing help

View command line help using:

fakeminder --help

or

fakeminder -h

Starting a new instance of the server

Start an instance of the server using:

fakeminder start -c <config_file>

Where <config_file> is the configuration file to use. Defaults to using the config.json in the project root folder.

Creating a new configuration file from the command line

Use a series of command line prompts to create a new configuration file using:

fakeminder create

Follow the instructions onscreen and FakeMinder will save the results to a new configuration JSON file.

Running Tests

Both analysis using JSHint and the execution of unit tests are executed using the default grunt task:

grunt

Integration tests are executed using mocha and require. Execute the corresponding grunt task to run them:

grunt int-test

Browser based integration tests are run using CasperJS and PhantomJS. Execute them using the following grunt task:

grunt ui-test

Code Coverage

Code coverage for tests are generated using the following grunt task:

grunt cover

The results of the coverage test run will now be displayed in your default browser.

Contributing

I'm not actively looking for contributions but if you feel there can be improvements made or you find a bug please fork and submit a pull request. For bugs please also raise an issue on the Github project site.