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
1ad2fd28
Commit
1ad2fd28
authored
11 years ago
by
Jaime Perez
Browse files
Options
Downloads
Plain Diff
Merge branch 'biancini-master'
parents
1431fc47
2809ed74
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config-templates/authsources.php
+14
-0
14 additions, 0 deletions
config-templates/authsources.php
lib/SimpleSAML/Metadata/SAMLBuilder.php
+4
-1
4 additions, 1 deletion
lib/SimpleSAML/Metadata/SAMLBuilder.php
modules/saml/www/sp/metadata.php
+1
-1
1 addition, 1 deletion
modules/saml/www/sp/metadata.php
with
19 additions
and
2 deletions
config-templates/authsources.php
+
14
−
0
View file @
1ad2fd28
...
...
@@ -47,6 +47,20 @@ $config = array(
* Please refer to the hosted SP configuration reference for more information.
*/
//'signature.algorithm' => 'http://www.w3.org/2001/04/xmldsig-more#rsa-sha256',
/*
// The attributes parameter must contain an array of desired attributes by the SP.
// The attributes can be expresed as an array of names or as an associative array
// in the form of 'friendlyName' => 'name'.
// The metadata will then be created as follows:
// <md:RequestedAttribute FriendlyName="friendlyName" Name="name" />
'attributes' => array(
'attrname' => 'urn:oid:x.x.x.x',
),
'attributes.required' => array (
'urn:oid:x.x.x.x',
),
*/
),
...
...
This diff is collapsed.
Click to expand it.
lib/SimpleSAML/Metadata/SAMLBuilder.php
+
4
−
1
View file @
1ad2fd28
...
...
@@ -370,9 +370,12 @@ class SimpleSAML_Metadata_SAMLBuilder {
$attributeconsumer
->
ServiceDescription
=
$metadata
->
getLocalizedString
(
'description'
,
array
());
$nameFormat
=
$metadata
->
getString
(
'attributes.NameFormat'
,
SAML2_Const
::
NAMEFORMAT_UNSPECIFIED
);
foreach
(
$attributes
as
$attribute
)
{
foreach
(
$attributes
as
$friendlyName
=>
$attribute
)
{
$t
=
new
SAML2_XML_md_RequestedAttribute
();
$t
->
Name
=
$attribute
;
if
(
!
is_int
(
$friendlyName
))
{
$t
->
FriendlyName
=
$friendlyName
;
}
if
(
$nameFormat
!==
SAML2_Const
::
NAMEFORMAT_UNSPECIFIED
)
{
$t
->
NameFormat
=
$nameFormat
;
}
...
...
This diff is collapsed.
Click to expand it.
modules/saml/www/sp/metadata.php
+
1
−
1
View file @
1ad2fd28
...
...
@@ -124,7 +124,7 @@ if ($format !== NULL) {
}
$name
=
$spconfig
->
getLocalizedString
(
'name'
,
NULL
);
$attributes
=
$spconfig
->
getArray
(
'attributes'
,
array
());
$attributes
=
array_values
(
$spconfig
->
getArray
(
'attributes'
,
array
())
)
;
if
(
$name
!==
NULL
&&
!
empty
(
$attributes
))
{
$metaArray20
[
'name'
]
=
$name
;
...
...
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