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
521c1d73
Commit
521c1d73
authored
9 years ago
by
Jaime Perez Crespo
Browse files
Options
Downloads
Patches
Plain Diff
Reformat the SimpleSAML_IdP_LogoutHandler abstract class.
parent
31773aa6
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/IdP/LogoutHandler.php
+49
-47
49 additions, 47 deletions
lib/SimpleSAML/IdP/LogoutHandler.php
with
49 additions
and
47 deletions
lib/SimpleSAML/IdP/LogoutHandler.php
+
49
−
47
View file @
521c1d73
<?php
<?php
/**
/**
* Base class for logout handlers.
* Base class for logout handlers.
*
*
* @package SimpleSAMLphp
* @package SimpleSAMLphp
*/
*/
abstract
class
SimpleSAML_IdP_LogoutHandler
{
abstract
class
SimpleSAML_IdP_LogoutHandler
{
/**
* The IdP we are logging out from.
/**
*
* The IdP we are logging out from.
* @var SimpleSAML_IdP
*
*/
* @var SimpleSAML_IdP
protected
$idp
;
*/
protected
$idp
;
/**
* Initialize this logout handler.
/**
*
* Initialize this logout handler.
* @param SimpleSAML_IdP $idp The IdP we are logging out from.
*
*/
* @param SimpleSAML_IdP $idp The IdP we are logging out from.
public
function
__construct
(
SimpleSAML_IdP
$idp
)
{
*/
$this
->
idp
=
$idp
;
public
function
__construct
(
SimpleSAML_IdP
$idp
)
}
{
$this
->
idp
=
$idp
;
}
/**
* Start a logout operation.
*
/**
* This function must never return.
* Start a logout operation.
*
*
* @param array &$state The logout state.
* This function must never return.
* @param string|null $assocId The association that started the logout.
*
*/
* @param array &$state The logout state.
abstract
public
function
startLogout
(
array
&
$state
,
$assocId
);
* @param string|null $assocId The association that started the logout.
*/
abstract
public
function
startLogout
(
array
&
$state
,
$assocId
);
/**
* Handles responses to our logout requests.
*
/**
* This function will never return.
* Handles responses to our logout requests.
*
*
* @param string $assocId The association that is terminated.
* This function will never return.
* @param string|null $relayState The RelayState from the start of the logout.
*
* @param SimpleSAML_Error_Exception|null $error The error that occurred during session termination (if any).
* @param string $assocId The association that is terminated.
*/
* @param string|null $relayState The RelayState from the start of the logout.
public
function
onResponse
(
$assocId
,
$relayState
,
SimpleSAML_Error_Exception
$error
=
NULL
)
{
* @param SimpleSAML_Error_Exception|null $error The error that occurred during session termination (if any).
assert
(
'is_string($assocId)'
);
*/
assert
(
'is_string($relayState) || is_null($relayState)'
);
public
function
onResponse
(
$assocId
,
$relayState
,
SimpleSAML_Error_Exception
$error
=
null
)
{
// don't do anything by default
assert
(
'is_string($assocId)'
);
}
assert
(
'is_string($relayState) || is_null($relayState)'
);
// don't do anything by default
}
}
}
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