Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

HHS/simplesamlphp-module-uwpoash

 
 

Repository files navigation

Warning

This repository has been archived and is no longer maintained. The code is provided for historical reference and may contain unpatched or unknown vulnerabilities. It should not be used in production systems. For more information, please contact hhs_github_service_desk@hhs.gov.

Authorize

Build Status Coverage Status Scrutinizer Code Quality Type Coverage Psalm Level

Install

Install with composer

    "repositories": [
        {
            "type": "package",
            "package": {
                "name": "hhs/simplesamlphp-module-uwpoash",
                "type": "simplesamlphp-module",
                "version": "1.0",
                "source": {
                    "url": "https://github.com/hhs/simplesamlphp-module-uwpoash.git",
                    "type": "git",
                    "reference": "master"
                }
            }
        }
    ],
    composer require hhs/simplesamlphp-module-uwpoash

Configuration

Next thing you need to do is to enable the module: in config.php, search for the module.enable key and set uwpoash to true:

    'module.enable' => [
        'uwpoash' => true,
        …
    ],
    …
    'authproc.sp' => [
        …
        60 => [
        'class' => 'uwpoash:Authorize',
        'deny'  => true,
        'IAL' => [
            'value' => '3',
            'operator' => '<',
        ],
        'AAL' => [
            'value' => '3',
            'operator' => '<',
            'exception' => 'PIVException',
        ],
        'errorURL' => true,
        'appName' => 'AMS-APP-LOA4',
        'loginURL' => sprintf('https://%s.odphp.health.gov/saml_login', $_ENV['DEPLOYMENT_GROUP_NAME']),
        'show_user_attribute' => 'EmailAddress',
        ],
        …
    ],

To use the OASH theme, you may also use this module as a theme:

    'theme.use' => 'uwpoash:uwp',

About

This module provides a user authorization filter based on attribute matching, customized to OASH and AMS

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • PHP 81.0%
  • Twig 15.9%
  • CSS 3.1%