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
a7be17b1
Commit
a7be17b1
authored
11 years ago
by
Jaime Perez
Committed by
Jaime Perez Crespo
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Remove support for hosted SP metadata in MetadataStorageHandler.
parent
62d6e53e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SimpleSAML/Metadata/MetaDataStorageHandler.php
+6
-18
6 additions, 18 deletions
lib/SimpleSAML/Metadata/MetaDataStorageHandler.php
with
6 additions
and
18 deletions
lib/SimpleSAML/Metadata/MetaDataStorageHandler.php
+
6
−
18
View file @
a7be17b1
...
...
@@ -73,7 +73,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
* @param $set The set we the property comes from.
* @return The autogenerated metadata property.
*/
public
function
getGenerated
(
$property
,
$set
=
'saml20-sp-hosted'
)
{
public
function
getGenerated
(
$property
,
$set
)
{
/* First we check if the user has overridden this property in the metadata. */
try
{
...
...
@@ -93,19 +93,12 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
$config
->
getBaseURL
();
if
(
$set
==
'saml20-sp-hosted'
)
{
switch
(
$property
)
{
case
'AssertionConsumerService'
:
return
$baseurl
.
'saml2/sp/AssertionConsumerService.php'
;
case
'SingleLogoutService'
:
return
$baseurl
.
'saml2/sp/SingleLogoutService.php'
;
switch
(
$property
)
{
case
'SingleLogoutServiceBinding'
:
return
SAML2_Const
::
BINDING_HTTP_REDIRECT
;
}
}
elseif
(
$set
==
'saml20-idp-hosted'
)
{
switch
(
$property
)
{
switch
(
$property
)
{
case
'SingleSignOnService'
:
return
$baseurl
.
'saml2/idp/SSOService.php'
;
...
...
@@ -118,11 +111,6 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
case
'SingleLogoutServiceBinding'
:
return
SAML2_Const
::
BINDING_HTTP_REDIRECT
;
}
}
elseif
(
$set
==
'shib13-sp-hosted'
)
{
switch
(
$property
)
{
case
'AssertionConsumerService'
:
return
$baseurl
.
'shib13/sp/AssertionConsumerService.php'
;
}
}
elseif
(
$set
==
'shib13-idp-hosted'
)
{
switch
(
$property
)
{
case
'SingleSignOnService'
:
...
...
@@ -181,7 +169,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
* @param $set The set we want metadata from.
* @return An associative array with the metadata.
*/
public
function
getMetaDataCurrent
(
$set
=
'saml20-sp-hosted'
)
{
public
function
getMetaDataCurrent
(
$set
)
{
return
$this
->
getMetaData
(
NULL
,
$set
);
}
...
...
@@ -194,7 +182,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
* @param $type Do you want to return the metaindex or the entityID. [entityid|metaindex]
* @return The entity id which is associated with the current hostname/path combination.
*/
public
function
getMetaDataCurrentEntityID
(
$set
=
'saml20-sp-hosted'
,
$type
=
'entityid'
)
{
public
function
getMetaDataCurrentEntityID
(
$set
,
$type
=
'entityid'
)
{
assert
(
'is_string($set)'
);
...
...
@@ -268,7 +256,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandler {
* the current entity id based on the current hostname/path.
* @param $set The set of metadata we are looking up the entity id in.
*/
public
function
getMetaData
(
$index
,
$set
=
'saml20-sp-hosted'
)
{
public
function
getMetaData
(
$index
,
$set
)
{
assert
(
'is_string($set)'
);
...
...
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