Commit a7bda781 authored by Mario Hernandez's avatar Mario Hernandez 💬

Update Integrating_SimpleSAMLphp_with_ADFS_2012R2.md

parent 4186df10
...@@ -247,32 +247,16 @@ Good job you asked, I nearly forgot. ...@@ -247,32 +247,16 @@ Good job you asked, I nearly forgot.
In the previous blog post, I provided some code that I took from the SimpleSAMLphp website. On line 3 of that code when we created a new object, we specified the service provider we wanted to use. It looked like this: In the previous blog post, I provided some code that I took from the SimpleSAMLphp website. On line 3 of that code when we created a new object, we specified the service provider we wanted to use. It looked like this:
```php
SOURCE CODE
===================================================
===================================================
$as = new SimpleSAML_Auth_Simple('default-sp'); $as = new SimpleSAML_Auth_Simple('default-sp');
=================================================== ```
===================================================
Not to be too cheeky but basically, we would simply change the service provider to, you guessed it, transishun-sp. After doing so, the whole file looks like this: Not to be too cheeky but basically, we would simply change the service provider to, you guessed it, transishun-sp. After doing so, the whole file looks like this:
SOURCE CODE ```php
===================================================
===================================================
<?php <?php
...@@ -330,9 +314,7 @@ echo '<a href="/logout.php">Logout</a>'; ...@@ -330,9 +314,7 @@ echo '<a href="/logout.php">Logout</a>';
</html> </html>
=================================================== ```
===================================================
...@@ -343,11 +325,7 @@ Hang on, I noticed in the index.php file that the logout link is different than ...@@ -343,11 +325,7 @@ Hang on, I noticed in the index.php file that the logout link is different than
To overcome this, we can send our user to a different page. It can be done using the getLogoutURL() function but if we wish to be certain the user was logged out, as per the SimpleSAMLphp documentation section 5.3, I would create two files: logout.php and logged_out.php with the following contents. What each file does should be pretty clear. To overcome this, we can send our user to a different page. It can be done using the getLogoutURL() function but if we wish to be certain the user was logged out, as per the SimpleSAMLphp documentation section 5.3, I would create two files: logout.php and logged_out.php with the following contents. What each file does should be pretty clear.
logout.php logout.php
SOURCE CODE ```php
=======================================================================
=======================================================================
<?php <?php
...@@ -436,6 +414,4 @@ echo("We were unable to log you out of all your sessions. To be completely sure ...@@ -436,6 +414,4 @@ echo("We were unable to log you out of all your sessions. To be completely sure
?> ?>
======================================================================= ```
\ No newline at end of file
=======================================================================
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment