Skip to content

Commit 447a201

Browse files
committed
Fix typos on README
1 parent a1aea04 commit 447a201

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -715,8 +715,8 @@ if (!$auth->isAuthenticated()) {
715715
$_SESSION['samlUserdata'] = $auth->getAttributes();
716716
$_SESSION['samlNameId'] = $auth->getNameId();
717717
$_SESSION['samlNameIdFormat'] = $auth->getNameIdFormat();
718-
$_SESSION['samlNameidNameQualifier' = $auth->getNameIdNameQualifier();
719-
$_SESSION['samlNameidSPNameQualifier' = $auth->getNameIdSPNameQualifier();
718+
$_SESSION['samlNameidNameQualifier'] = $auth->getNameIdNameQualifier();
719+
$_SESSION['samlNameidSPNameQualifier'] = $auth->getNameIdSPNameQualifier();
720720
$_SESSION['samlSessionIndex'] = $auth->getSessionIndex();
721721

722722
if (isset($_POST['RelayState']) && OneLogin\Saml2\Utils::getSelfURL() != $_POST['RelayState']) {
@@ -976,7 +976,7 @@ A more complex logout with all the parameters:
976976
```
977977
$auth = new OneLogin\Saml2\Auth();
978978
$returnTo = null;
979-
$paramters = array();
979+
$parameters = array();
980980
$nameId = null;
981981
$sessionIndex = null;
982982
$nameIdFormat = null;
@@ -998,13 +998,13 @@ if (isset($_SESSION['samlNameIdNameQualifier'])) {
998998
if (isset($_SESSION['samlNameIdSPNameQualifier'])) {
999999
$nameIdSPNameQualifier = $_SESSION['samlNameIdSPNameQualifier'];
10001000
}
1001-
$auth->logout($returnTo, $paramters, $nameId, $sessionIndex, false, $nameIdFormat, $nameIdNameQualifier, $nameIdSPNameQualifier);
1001+
$auth->logout($returnTo, $parameters, $nameId, $sessionIndex, false, $nameIdFormat, $nameIdNameQualifier, $nameIdSPNameQualifier);
10021002
```
10031003

10041004
If a match on the future LogoutResponse ID and the LogoutRequest ID to be sent is required, that LogoutRequest ID must to be extracted and stored.
10051005

10061006
```php
1007-
$sloBuiltUrl = $auth->logout(null, $paramters, $nameId, $sessionIndex, true);
1007+
$sloBuiltUrl = $auth->logout(null, $parameters, $nameId, $sessionIndex, true);
10081008
$_SESSION['LogoutRequestID'] = $auth->getLastRequestID();
10091009
header('Pragma: no-cache');
10101010
header('Cache-Control: no-cache, must-revalidate');
@@ -1106,7 +1106,7 @@ php-saml toolkit uses a bunch of methods in OneLogin\Saml2\Utils that try to gue
11061106
* `getSelfURLNoQuery` Returns the URL of the current host + current view.
11071107
* `getSelfRoutedURLNoQuery` Returns the routed URL of the current host + current view.
11081108

1109-
getSelfURLNoQuery and getSelfRoutedURLNoQuery are used to calculate the currentURL in order to valdate SAML elements like Destination or Recipient.
1109+
getSelfURLNoQuery and getSelfRoutedURLNoQuery are used to calculate the currentURL in order to validate SAML elements like Destination or Recipient.
11101110

11111111
When the PHP application is behind a proxy or a load balancer we can execute `setProxyVars(true)` and `setSelfPort` and `isHTTPS` will take care of the `$_SERVER["HTTP_X_FORWARDED_PORT"]` and `$_SERVER['HTTP_X_FORWARDED_PROTO']` vars (otherwise they are ignored).
11121112

@@ -1408,7 +1408,7 @@ Once the SP is configured, the metadata of the SP is published at the
14081408
process, the `index.php` view.
14091409

14101410
2.2 in the second link we access to (`attrs.php`) have the same process
1411-
described at 2.1 with the diference that as `RelayState` is set the `attrs.php`.
1411+
described at 2.1 with the difference that as `RelayState` is set the `attrs.php`.
14121412

14131413
3. The SAML Response is processed in the ACS (`index.php?acs`), if the Response
14141414
is not valid, the process stops here and a message is shown. Otherwise we
@@ -1435,7 +1435,7 @@ Once the SP is configured, the metadata of the SP is published at the
14351435
session at of the IdP. Notice that the SLO Workflow starts and ends at the IdP.
14361436

14371437
Notice that all the SAML Requests and Responses are handled by a unique file,
1438-
the `index.php` file and how `GET` paramters are used to know the action that
1438+
the `index.php` file and how `GET` parameters are used to know the action that
14391439
must be done.
14401440

14411441

0 commit comments

Comments
 (0)