Skip to content
Snippets Groups Projects
Commit 4c52986f authored by Guillaume ROUSSE's avatar Guillaume ROUSSE
Browse files

oops

parent 045b33fe
Branches
Tags
No related merge requests found
...@@ -10,14 +10,13 @@ ...@@ -10,14 +10,13 @@
use strict; use strict;
use warnings; use warnings;
use utf8; use utf8;
use lib qw(lib conf); use lib qw(lib);
use feature "switch"; use feature "switch";
no warnings 'experimental::smartmatch'; no warnings 'experimental::smartmatch';
use Getopt::Long qw(:config auto_help); use Getopt::Long qw(:config auto_help);
use Pod::Usage; use Pod::Usage;
use Conf;
use IdPAccountManager::Data::AuthenticationToken; use IdPAccountManager::Data::AuthenticationToken;
use IdPAccountManager::Data::AuthenticationToken::Manager; use IdPAccountManager::Data::AuthenticationToken::Manager;
use IdPAccountManager::Data::ServiceProvider; use IdPAccountManager::Data::ServiceProvider;
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
use strict; use strict;
use warnings; use warnings;
use utf8; use utf8;
use lib qw(lib conf); use lib qw(lib);
use IdPAccountManager::Configuration; use IdPAccountManager::Configuration;
use IdPAccountManager::WebRequest; use IdPAccountManager::WebRequest;
...@@ -27,22 +27,22 @@ my %format = ( ...@@ -27,22 +27,22 @@ my %format = (
'sp_entityid' => $urn_or_url_regex, 'sp_entityid' => $urn_or_url_regex,
); );
my $configuration = IdPAccountManager::Configuration->new(
file => 'conf/IdPAccountManager.conf'
);
my %actions = ( my %actions = (
'select_sp' => { 'title_en' => 'Select your Service Provider' }, 'select_sp' => { 'title_en' => 'Select your Service Provider' },
'account_wizard' => { 'title_en' => 'Select your Service Provider' }, 'account_wizard' => { 'title_en' => 'Select your Service Provider' },
'generate_token' => { 'title_en' => 'Generate an authentication token' }, 'generate_token' => { 'title_en' => 'Generate an authentication token' },
'validate_token' => { 'title_en' => 'Complete Email Challenge' }, 'validate_token' => { 'title_en' => 'Complete Email Challenge' },
'home' => { 'title_en' => $Conf::global{app_name} }, 'home' => { 'title_en' => $configuration->{app_name} },
); );
## Gives writes for the group ## Gives writes for the group
umask 0002; umask 0002;
chdir $Conf::global{root_manager_dir}; chdir $configuration->{root_manager_dir};
my $configuration = IdPAccountManager::Configuration->new(
file => 'conf/IdPAccountManager.conf'
);
my $request = new IdPAccountManager::WebRequest( my $request = new IdPAccountManager::WebRequest(
actions => \%actions, actions => \%actions,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment