Skip to content
Snippets Groups Projects
Conf.pm 3.07 KiB
Newer Older
package Conf;

our %global = (
    
    ## Code version
renater.salaun's avatar
renater.salaun committed
    'version' => 'open Beta 1',
    
    ## Name of the application used in web pages, mail notices
    'app_name' => 'eduGAIN Access Check',
    
    ## URL of the application
    'app_url' => 'https://my.fqdn/accountmanager',
    
    ## Validity period of test accounts, in days
    'accounts_validity_period' => 7,
    
    ## Token validity period, in hours
    'tokens_validity_period' => 2,

    ## Scope used by the associated IdP
    'idp_scope' => 'my.fqdn',
    
    ## EntityID of the IdP
    'idp_entityid' => 'https://my.fqdn/simplesaml/saml2/idp/metadata.php',
    
    ## Name of the IdP
    'idp_displayname' => 'eduGAIN Access Check',
    
    ## Root simpleSamlPhp directory
    'root_ssp_dir' => '/opt/testidp/simplesamlphp',
    
    ## Root test account manager directory
    'root_manager_dir' => '/opt/testidp/IdPAccountManager',
    
    ## Database type refers to a Perl Database Driver name
    ## However only a subset of existing DBDs are supported by Rose::DB::Object:
    ## Pg, mysql, SQLite, Informix, Oracle (DBD names are case sensitives)
    'database_type' => 'mysql',
    
    ## Database hostname
    'database_host' => 'localhost',
    
    ## Database_name
    'database_name' => 'idp_account_manager',
    
    ## Database username
    'database_user' => 'idpadmin',
    
    ## Database user password
    'database_password' => 'secret',
    
    ## Log file for the manager
    'log_file' => '/opt/testidp/IdPAccountManager/log/manager.log',
    
    ## Log level : debug, info, trace, notice, error
    'log-level' => 'info',
    
    ## email address to contact admins
    'admin_email' => 'john@my.fqdn',
    
    ## email address to ask for support
    'support_email' => 'support@my.fqdn',
    
    ## Development feature
    ## Protection to prevent notifications during test dev phases
    ## Notify only admin_email above
    'dev_no_mail_outside' => 1,
    
    ## Development feature
    ## hard-coded list of contactPersons
    ## these email addresses will be added to the list of contacts for any SP
    'dev_sp_contact' => 'john@my.fqdn,sarah@my.fqdn',
    
    ## From field use by the account manager
    'notice_from' => 'edugain-access-check.fqdn',
        
    ## federation metadata local copy path
    'federation_metadata_file_path' => '/opt/testidp/IdPAccountManager/conf/edugain-md.xml',
    
    ## Valid account profiles
    'account_profiles' => ['fullset1','limitedset1','generic1','student1','student2','teacher1','teacher2','alumni1','librarywalkin1','employee1','researcher1'],
);
    
1; # Magic true value required at end of module
__END__

=head1 NAME

Conf - Configuration of the Test Account manager

=head1 SYNOPSIS

use Conf;

printf "Version: %s\n", $Conf::global{'version'};

=head1 DESCRIPTION

The Test Account manager instanciates test accounts associated to a SAML Identity Provider. This module is the main configuration file for the
software.

=head1 CONFIGURATION OPTIONS

See the code for the list of supported configuration options

=head1 AUTHOR

Olivier Salaün (olivier.salaun@renater.fr)