Install with composer
vendor/bin/composer require simplesamlphp/simplesamlphp-module-authorize
Next thing you need to do is to enable the module: in config.php, search for the module.enable key and set authorize to true:
config.php
module.enable
authorize
'module.enable' => [ 'authorize' => true, … ],