Register
By registering you accept the Terms and Conditions and the Privacy policy of the platform "www.edudip.com (edudip GmbH)".

or


Login with XING

Single sign on

Use the edudip interface so your users don't have to register once again.

The single sign-on enables developers to add new users to the database of your business solution. Additionally the users can automatically switch to your business solution without another login process with a special link if they are already logged in in your system.

The following PHP code is used as an example of how you can integrate this functionality into your website.

/**
 * @copyright 2012 - 2016 edudip GmbH
 */


$entityName = '<EDIT> entity';
$key = '<EDIT> entity key';
$secureKey = '<EDIT> secure key';


$postDataToSend = array(
	'Locale' => '', // de_DE, en_US
	'Email' => 'john@doe.de',
	'Firstname' => 'John',
	'Lastname' => 'Doe',
	'Gender' => 'f', // 'f'|'m'
	'Password' => 'min. 8 Characters',
	'Moderator' => 'false', // optional, default: 'false'
	'SecureKey' => $secureKey,
);


$getDataToSend = array(
	'key' => $key,
	'methodName' => 'core.tokenizeUser',
	'version' => '4.0',
);


$baseUrl = 'https://api.edudip.com/';
$query = http_build_query($getDataToSend);
$url = $baseUrl.'?'.$query;


$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postDataToSend);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);


$result = json_decode($response);


if (null === $result) {
	// fataler Fehler, in $response steht die Antwort des API-Servers
	//  $response nicht an Endkunden rausgeben!


	// zum Beispiel:
	// die('FATAL ERROR');
	die();
}


if (false === $result->Success) {
	// API Fehler, in $result->Message steht die Antwort des API-Servers
	//  $result->Message nicht an Endkunden rausgeben!


	// zum Beispiel:
	// echo 'ERROR';
} else {
	$token = $result->Reply->Token;


	$url = 'https://'.$entityName.'.edudip.com/-t/'.$token.'/start';


	// zum Beispiel:
	// echo 'Startseite: <a href="'.$url.'" target="_blank">'.$url.'</a>';
	//
	// oder
	// echo '<script type="text/javascript">window.location.href = "'.$url.'";</script>';
}
		

We recommend the usage of AJAX to avoid long loading times of your website.

Notices:

We detected that your time zone is different from the preset time zone (CET).

Maybe your computer clock is set differently, or you are in a different time zone?

We have determined the following time zones as a suggestion for you:

Matching time zones

All time zones

Is your time zone is not listed?