This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* XML Security Library (http://www.aleksey.com/xmlsec). | |
* | |
* The transforms engine | |
* | |
* This is free software; see Copyright file in the source | |
* distribution for preciese wording. | |
* | |
* Copyright (C) 2002-2003 Aleksey Sanin <[email protected]> | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Make sure we don't expose any info if called directly | |
if ( !function_exists( 'add_action' ) ) { | |
echo 'Hi there! I\'m just a plugin, not much I can do when called directly.'; | |
exit; | |
} | |
function saml_checker() { | |
if (isset($_GET['saml_acs'])) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/wp-load.php'; | |
require_once plugin_dir_path(__FILE__)."php/functions.php"; | |
require_once plugin_dir_path(__FILE__)."php/configuration.php"; | |
saml_acs(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This script search user with @@@nopass@@@ passwords and replace them by random passwords | |
*/ | |
/** Sets up the WordPress Environment. */ | |
require( dirname(__FILE__) . '/wp-load.php' ); | |
$users = get_users(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// URL & credentials | |
$url = "https://api.<us or eu>.onelogin.com/auth/oauth2/token"; | |
$client_id = "<client_id>"; | |
$client_secret = "<client_secret>"; | |
$data = array( | |
"grant_type" => "client_credentials" | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// URL & credentials | |
$url = "https://api.<us or eu>.onelogin.com/api/1/users"; | |
$access_token = "<access_token>"; | |
// Parameters | |
$query_parameters = array( | |
// -- Search -- | |
'directory_id' => null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// URL & credentials | |
$url = "https://api.<us or eu>.onelogin.com/api/1/saml_assertion"; | |
$access_token = "<access_token>"; | |
// Parameters | |
$username_or_email = "<username_or_email>"; | |
$password = "<password>"; | |
$app_id = "<app_id>"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// URL & credentials | |
$url = "https://api.<us or eu>.onelogin.com/api/1/roles"; | |
$access_token = "<access_token>"; | |
// Parameters | |
$query_parameters = array( | |
// -- Search -- | |
'id' => null, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// URL & credentials | |
$url = "https://api.<us or eu>.onelogin.com/api/1/events"; | |
$access_token = "<access_token>"; | |
// Parameters | |
$query_parameters = array( | |
// -- Search -- | |
'client_id' => '', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// URL & credentials | |
$url = "https://api.<us or eu>.onelogin.com/api/1/groups"; | |
$access_token = "<access_token>"; | |
// Parameters | |
$query_parameters = array( | |
// -- Search -- | |
'id' => '', |
OlderNewer