Skip to content

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

License

Notifications You must be signed in to change notification settings

HHS/simplesamlphp-module-uwpoash

 
 

Repository files navigation

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

Languages

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