ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
client_example.php
Go to the documentation of this file.
1<?php
2
24require __DIR__ . '/vendor/autoload.php';
25
27
29 'http://myproviderURL.com/',
30 'ClientIDHere',
31 'ClientSecretHere'
32);
33
34$oidc->authenticate();
35$name = $oidc->requestUserInfo('given_name');
36
37?>
38
39<html>
40<head>
41 <title>Example OpenID Connect Client Use</title>
42 <style>
43 body {
44 font-family: 'Lucida Grande', Verdana, Arial, sans-serif;
45 }
46 </style>
47</head>
48<body>
49
50 <div>
51 Hello <?php echo $name; ?>
52 </div>
53
54</body>
55</html>
56
html()
An exception for terminatinating execution or to throw for unit testing.
Require the CURL and JSON PHP extensions to be installed.