Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
marcus.hardt
pluto
Commits
0cca85aa
Commit
0cca85aa
authored
Sep 19, 2014
by
marcus-tun
Browse files
minor code cleaning
parent
79fe1881
Changes
1
Hide whitespace changes
Inline
Side-by-side
client/saml-init
View file @
0cca85aa
...
...
@@ -26,9 +26,6 @@ use Term::ReadKey;
use
Term::
ReadLine
;
use
MIME::
Base64
qw( encode_base64 )
;
# Just for debugging:
use
Data::
Dumper
;
# Handle <Ctrl>+C to reset the terminal to non-bold text
$SIG
{
INT
}
=
\
&resetTerm
;
...
...
@@ -44,7 +41,6 @@ my $headers='';
# DEFAULTS
my
$idpname
=
'
Test KIT IdP
';
my
$idplisturl
=
'
http://saml-delegation.data.kit.edu/sd/idplist.txt
';
#my $idpurl = 'https://idptest.scc.kit.edu/idp/profile/SAML2/SOAP/ECP';
my
$idpurl
=
'';
my
$idpuser
=
'';
my
$idppass
=
'';
...
...
@@ -239,8 +235,7 @@ if ($response->is_success) {
warn
("
Error: No valid IdP URL specified
\n
");
exit
1
;
}
# Finally create the session cookie... (the lengthy code is in the
# subroutine
# Create the session cookie... (the lengthy code is in the subroutine)
create_valid_session_via_idp
(
$idpurl
,
$idpuser
,
$idppass
,
$ua
);
# Reset the cookie to prevent CSRF
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment