Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
bcb38a54
Commit
bcb38a54
authored
11 years ago
by
Jaime Perez
Committed by
Jaime Perez Crespo
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove backwards compatibility (related to old SP interfaces) in AuthMemCookie.
parent
b2e9de56
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config-templates/authmemcookie.php
+0
-9
0 additions, 9 deletions
config-templates/authmemcookie.php
lib/SimpleSAML/AuthMemCookie.php
+0
-20
0 additions, 20 deletions
lib/SimpleSAML/AuthMemCookie.php
www/authmemcookie.php
+2
-18
2 additions, 18 deletions
www/authmemcookie.php
with
2 additions
and
47 deletions
config-templates/authmemcookie.php
+
0
−
9
View file @
bcb38a54
...
...
@@ -6,15 +6,6 @@
$config
=
array
(
/*
* What type of login Auth MemCookie will use.
* Can be either 'authsource', 'saml2' or 'shib13'.
*
* For backwards compatibility, the default value if unset is 'saml2'.
* New installations should use 'authsource'.
*/
'loginmethod'
=>
'authsource'
,
/*
* The authentication source that should be used.
*
...
...
This diff is collapsed.
Click to expand it.
lib/SimpleSAML/AuthMemCookie.php
+
0
−
20
View file @
bcb38a54
...
...
@@ -43,26 +43,6 @@ class SimpleSAML_AuthMemCookie {
}
/**
* Retrieve the login method which should be used to authenticate the user.
*
* @return string The login type which should be used for Auth MemCookie.
*/
public
function
getLoginMethod
()
{
$loginMethod
=
$this
->
amcConfig
->
getString
(
'loginmethod'
,
'saml2'
);
$supportedLogins
=
array
(
'authsource'
,
'saml2'
,
'shib13'
,
);
if
(
!
in_array
(
$loginMethod
,
$supportedLogins
,
TRUE
))
{
throw
new
Exception
(
'Configuration option \'loginmethod\' contains an invalid value.'
);
}
return
$loginMethod
;
}
/**
* Retrieve the authentication source that should be used to authenticate the user.
*
...
...
This diff is collapsed.
Click to expand it.
www/authmemcookie.php
+
2
−
18
View file @
bcb38a54
...
...
@@ -24,24 +24,8 @@ try {
/* Load Auth MemCookie configuration. */
$amc
=
SimpleSAML_AuthMemCookie
::
getInstance
();
/* Determine the method we should use to authenticate the user and retrieve the attributes. */
$loginMethod
=
$amc
->
getLoginMethod
();
switch
(
$loginMethod
)
{
case
'authsource'
:
/* The default now. */
$sourceId
=
$amc
->
getAuthSource
();
$s
=
new
SimpleSAML_Auth_Simple
(
$sourceId
);
break
;
case
'saml2'
:
$s
=
new
SimpleSAML_Auth_BWC
(
'saml2/sp/initSSO.php'
,
'saml2'
);
break
;
case
'shib13'
:
$s
=
new
SimpleSAML_Auth_BWC
(
'shib13/sp/initSSO.php'
,
'shib13'
);
break
;
default
:
/* Should never happen, as the login method is checked in the AuthMemCookie class. */
throw
new
Exception
(
'Invalid login method.'
);
}
$sourceId
=
$amc
->
getAuthSource
();
$s
=
new
SimpleSAML_Auth_Simple
(
$sourceId
);
/* Check if the user is authorized. We attempt to authenticate the user if not. */
$s
->
requireAuth
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment