From 8149492cbeb3d485561ff55718441664c127a59b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?=
Date: Wed, 2 Mar 2011 13:46:43 +0100
Subject: [PATCH] rfe #1640812 [auth] Add example for OpenID authentication
using signon method.
---
ChangeLog | 1 +
Documentation.html | 4 +-
scripts/openid.php | 161 +++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 165 insertions(+), 1 deletion(-)
create mode 100644 scripts/openid.php
diff --git a/ChangeLog b/ChangeLog
index e0e68664a..29dafd6e0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -142,6 +142,7 @@
thanks to Thilanka Kaushalya
- [interface] New default theme pmahomme, dropped darkblue_orange theme.
- rfe #2936155 [auth] Allow to pass additional parameters using signon method.
+- rfe #1640812 [auth] Add example for OpenID authentication using signon method.
3.3.10.0 (not yet released)
- patch #3147400 [structure] Aria table size printed as unknown,
diff --git a/Documentation.html b/Documentation.html
index 956f67749..3c40382c6 100644
--- a/Documentation.html
+++ b/Documentation.html
@@ -758,7 +758,9 @@ since this link provides funding for phpMyAdmin.
as introduced in 2.10.0 allows you to log in from prepared PHP
session data. This is useful for implementing single signon
from another application. Sample way how to seed session is in
- signon example: scripts/signon.php
. You need to
+ signon example: scripts/signon.php
. There is also
+ alternative example using OpenID -
+ scripts/openid.php
. You need to
configure session name and signon
diff --git a/scripts/openid.php b/scripts/openid.php
new file mode 100644
index 000000000..b35408802
--- /dev/null
+++ b/scripts/openid.php
@@ -0,0 +1,161 @@
+ array(
+ 'user' => 'root',
+ 'password' => '',
+ ),
+ );
+
+/**
+ * Simple function to show HTML page with given content.
+ */
+function show_page($contents) {
+ header('Content-Type: text/html; charset=utf-8');
+ echo '' . "\n";
+ ?>
+
+
+
+
+
+ phpMyAdmin OpenID signon example
+
+
+' . $_SESSION['PMA_single_signon_message'] . '
';
+ unset($_SESSION['PMA_single_signon_message']);
+}
+echo $contents;
+?>
+
+
+
+OpenID:
+
+
+