<commit_before># express-hod-sso

[Express](http://expressjs.com/) (4.x) middleware for securing routes using [HPE Haven OnDemand](http://www.havenondemand.com) SSO.

Designed for use with the node-hod-request-lib, [hod-sso-js](https://github.com/hpe-idol/hod-sso-js) and a compatible token repository.

## Usage

express-hod-sso exposes an Express Router for use as middleware/routing:

    var ssoRouter = require('express-hod-sso');

    app.use(ssoRouter(apiKey, {
        allowedOrigins: allowedOrigins,
        hodRequestLib: hodRequestLib,
        tokenRepository: tokenRepository
    }));

## License
Copyright 2016 Hewlett Packard Enterprise Development LP

Licensed under the MIT License (the "License"); you may not use this project except in compliance with the License.<commit_msg>Update README with link to request library repo<commit_after># express-hod-sso

[Express](http://expressjs.com/) (4.x) middleware for securing routes using [HPE Haven OnDemand](http://www.havenondemand.com) SSO.

Designed for use with the [node-hod-request-lib](https://github.com/hpe-idol/node-hod-request-lib), [hod-sso-js](https://github.com/hpe-idol/hod-sso-js) and a compatible token repository.

## Usage

express-hod-sso exposes an Express Router for use as middleware/routing:

    var ssoRouter = require('express-hod-sso');

    app.use(ssoRouter(apiKey, {
        allowedOrigins: allowedOrigins,
        hodRequestLib: hodRequestLib,
        tokenRepository: tokenRepository
    }));

## License
Copyright 2016 Hewlett Packard Enterprise Development LP

Licensed under the MIT License (the "License"); you may not use this project except in compliance with the License.
{'fraction_non_alphanumeric': 0.1087216248506571, 'fraction_numerical': 0.005973715651135006, 'mean_word_length': 4.185758513931889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '152991', 'n_tokens_mistral': 542, 'n_tokens_neox': 521, 'n_words': 150}