ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
client_example.php
Go to the documentation of this file.
1
<?
php
2
24
require __DIR__ .
'/vendor/autoload.php'
;
25
26
use
Jumbojett\OpenIDConnectClient
;
27
28
$oidc
=
new
OpenIDConnectClient
(
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
OpenIDConnectClient
Copyright MITRE 2012.
style
"color:#CC0000 style
Definition:
example_001.php:92
html
html()
Definition:
IntegrationTest.php:14
$name
$name
Definition:
client_example.php:35
php
$oidc
$oidc
Definition:
client_example.php:28
Jumbojett\OpenIDConnectClient
Require the CURL and JSON PHP extensions to be installed.
Definition:
OpenIDConnectClient.php:89
libs
composer
vendor
jumbojett
openid-connect-php
client_example.php
Generated on Thu Jan 16 2025 19:01:42 for ILIAS by
1.8.13 (using
Doxyfile
)