Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

More Hive integration

  • Loading branch information...
commit f0fc458a82e747fdbce7441e0680992e3dcf62d3 1 parent f27149b
moodler authored
Showing with 27 additions and 0 deletions.
  1. +27 −0 sso/hive/expired.php
View
27 sso/hive/expired.php
@@ -0,0 +1,27 @@
+<?php // $Id$
+ // expired.php - called by hive when the session has expired.
+
+ require('../../config.php');
+
+ require('lib.php');
+
+ require_login();
+
+ if (empty($SESSION->HIVE_PASSWORD)) { // We don't have old password
+ error('Sorry, but Hive has timed out, you need to log in again',
+ $CFG->wwwroot.'/login/logout.php');
+ }
+
+/// Try and log back in silently
+
+ if (sso_user_login($USER->username, $SESSION->HIVE_PASSWORD)) { // Log back into Hive
+
+ /// Need something in here to redirect back to Hive
+
+ } else {
+ error('Sorry, could not restore Hive connection, please try logging in again',
+ $CFG->wwwroot.'/login/logout.php');
+ }
+
+
+?>
Please sign in to comment.
Something went wrong with that request. Please try again.