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
e9789852
Commit
e9789852
authored
9 years ago
by
Jaime Perez Crespo
Browse files
Options
Downloads
Patches
Plain Diff
Reformat sspmod_saml_Auth_Process_TransientNameID and fix some phpdoc comments.
parent
985b155e
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
modules/saml/lib/Auth/Process/TransientNameID.php
+27
-24
27 additions, 24 deletions
modules/saml/lib/Auth/Process/TransientNameID.php
with
27 additions
and
24 deletions
modules/saml/lib/Auth/Process/TransientNameID.php
+
27
−
24
View file @
e9789852
<?php
/**
* Auth
proc
filter to generate a transient NameID.
* Auth
entication processing
filter to generate a transient NameID.
*
* @package
s
impleSAMLphp
* @package
S
impleSAMLphp
*/
class
sspmod_saml_Auth_Process_TransientNameID
extends
sspmod_saml_BaseNameIDGenerator
{
/**
* Initialize this filter, parse configuration
*
* @param array $config Configuration information about this filter.
* @param mixed $reserved For future use.
*/
public
function
__construct
(
$config
,
$reserved
)
{
parent
::
__construct
(
$config
,
$reserved
);
assert
(
'is_array($config)'
);
$this
->
format
=
SAML2_Const
::
NAMEID_TRANSIENT
;
}
class
sspmod_saml_Auth_Process_TransientNameID
extends
sspmod_saml_BaseNameIDGenerator
{
/**
* Initialize this filter, parse configuration
*
* @param array $config Configuration information about this filter.
* @param mixed $reserved For future use.
*/
public
function
__construct
(
$config
,
$reserved
)
{
parent
::
__construct
(
$config
,
$reserved
);
assert
(
'is_array($config)'
);
/**
* Get the NameID value.
*
* @return string|NULL The NameID value.
*/
protected
function
getValue
(
array
&
$state
)
{
$this
->
format
=
SAML2_Const
::
NAMEID_TRANSIENT
;
}
return
SimpleSAML\Utils\Random
::
generateID
();
}
/**
* Get the NameID value.
*
* @param array $state The state array.
* @return string|null The NameID value.
*/
protected
function
getValue
(
array
&
$state
)
{
return
SimpleSAML\Utils\Random
::
generateID
();
}
}
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