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

fix parameters name

parent 9b14d9d8
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,7 @@ use IdPAccountManager::Data::TestAccount; ...@@ -12,6 +12,7 @@ use IdPAccountManager::Data::TestAccount;
use IdPAccountManager::Data::AuthenticationToken; use IdPAccountManager::Data::AuthenticationToken;
use IdPAccountManager::Data::ServiceProvider; use IdPAccountManager::Data::ServiceProvider;
use IdPAccountManager::SAMLMetadata; use IdPAccountManager::SAMLMetadata;
use IdPAccountManager::Tools;
## Defining parameters format ## Defining parameters format
my $urn_or_url_regex = '(http(s?):\/\/|urn:)[^\\\$\*\"\'\`\^\|\<\>\n\s]+' my $urn_or_url_regex = '(http(s?):\/\/|urn:)[^\\\$\*\"\'\`\^\|\<\>\n\s]+'
...@@ -214,7 +215,7 @@ sub req_account_wizard { ...@@ -214,7 +215,7 @@ sub req_account_wizard {
return undef; return undef;
} }
$self->{out} = $metadata->parse(); $self->{out}->{metadata} = $metadata->parse();
$self->{out}->{subtitle} = 'Select your Service Provider'; $self->{out}->{subtitle} = 'Select your Service Provider';
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
[% IF serviceprovider.displayname %] [% IF serviceprovider.displayname %]
[% SET sp_display_name = serviceprovider.displayname %] [% SET sp_display_name = serviceprovider.displayname %]
[% ELSE %] [% ELSE %]
[% SET sp_display_name = sp_metadata_as_hashref.entityid %] [% SET sp_display_name = metadata.entityid %]
[% END %] [% END %]
<div> <div>
Before you can create test accounts at this Identity Provider, we need to ensure you are a legitimate administrator of "[% sp_display_name %]". Before you can create test accounts at this Identity Provider, we need to ensure you are a legitimate administrator of "[% sp_display_name %]".
</div> </div>
<fieldset class="scrollable"> <fieldset class="scrollable">
[% IF sp_metadata_as_hashref.contacts.defined %] [% IF metadata.contacts.defined %]
<legend>Select your email address</legend> <legend>Select your email address</legend>
<label for="sp_entityid">The email addresses below have been extracted from your SP SAML metadata.<br/>Please select the email address where an email challenge <label for="sp_entityid">The email addresses below have been extracted from your SP SAML metadata.<br/>Please select the email address where an email challenge
can be sent to validate your identity</label> can be sent to validate your identity</label>
...@@ -19,7 +19,7 @@ Before you can create test accounts at this Identity Provider, we need to ensure ...@@ -19,7 +19,7 @@ Before you can create test accounts at this Identity Provider, we need to ensure
[% FOREACH email IN serviceprovider.list_contacts_as_array.sort %] [% FOREACH email IN serviceprovider.list_contacts_as_array.sort %]
<input name="email_address" value="[% email %]" type="radio" class="required"/><label for="email_address">[% email %]</label><br/> <input name="email_address" value="[% email %]" type="radio" class="required"/><label for="email_address">[% email %]</label><br/>
<input type="hidden" name="sp_entityid" value="[% sp_metadata_as_hashref.entityid %]" id="sp_entityid"/> <input type="hidden" name="sp_entityid" value="[% metadata.entityid %]" id="sp_entityid"/>
[% END %] [% END %]
</div> </div>
...@@ -38,4 +38,4 @@ administrator to add ContactPerson information to the SAML metadata. ...@@ -38,4 +38,4 @@ administrator to add ContactPerson information to the SAML metadata.
input.val([input.attr('value')]); input.val([input.attr('value')]);
}); });
}); });
</script> </script>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment