The ScreenSteps Online Knowledge Base Everything you need to know about ScreenSteps
Blue mango logo white 250
  • Table of Contents
  • Contact Us
ScreenSteps Documentation » ScreenSteps Live Remote Authentication » How Can I Log a User Into ScreenSteps Live Using PHP And ScreenSteps Live Remote Authentication?

Topics

  • 1. Remote Authentication 6
    • 1.1 What is Remote Authentication?
    • 1.2 How do I Enable Remote Authentication On My Account?
    • 1.3 SAML Settings
    • 1.4 ScreenSteps Live Remote Auth Settings
    • 1.5 Granting Remotely Authenticated Users Automatic Access to a Space
    • 1.6 How Do I Get Back Into My Account if I Have Accidentally Locked Myself Out?
  • 2. ScreenSteps Live Remote Authentication 2
    • 2.1 How Do I Remotely Authenticate a User using ScreenSteps Live Remote Authentication?
    • 2.2 How Can I Log a User Into ScreenSteps Live Using PHP And ScreenSteps Live Remote Authentication?
  • 3. WordPress Plugin 2
    • 3.1 Installing the WordPress Plugin
    • 3.2 Configuring the WordPress Plugin
  • 4. Using Remote Authentication with Atlassian Crowd 6
    • 4.1 Overview
    • 4.2 Uploading the PHP Scripts
    • 4.3 Adding An Application In Crowd
    • 4.4 Setting Up Remote Authentication in ScreenSteps Live
    • 4.5 Configuring the PHP Script
    • 4.6 Testing
  • 5. Using SAML with OneLogin 1
    • 5.1 Configuring SAML with OneLogin
  • 6. Using SAML with Salesforce.com 3
    • 6.1 Configuring SAML with Salesforce.com
    • 6.2 Generating a self-signed certificate on Salesforce.com
    • 6.3 Authenticating Salesforce users for creating and updating lessons
  • 7. Using ScreenSteps Live Remote Authentication with Salesforce.com 6
    • 7.1 Overview
    • 7.2 Configuring ScreenSteps Live
    • 7.3 Creating the Controller
    • 7.4 Creating the Visualforce Page
    • 7.5 Setting Permissions for the Visualforce Page
    • 7.6 Test: Logging Into ScreenSteps Live with Salesforce Credentials

Quicklinks

  • Downloads
  • View forums
  • Submit a help request
  • Contact us
  • Retrieve a lost license key

Last Updated

May 15, 2012

Download Manual PDF

Other Resources

  • ScreenSteps Desktop & Workgroup

  • ScreenSteps 2.9
  • ScreenSteps Workgroup
  • Customizing HTML Templates
  • ScreenSteps: Tips & Tricks
  • Creating Word Templates
  • Publishing to Blogs & Wikis
  • ScreenSteps Live

  • ScreenSteps Live
  • Setting up a New Admin, Editor or Author on ScreenSteps Live
  • ScreenSteps Live Support Client
  • Integrating ScreenSteps Live With Other Services
  • Collaborating on ScreenSteps Live
  • ScreenSteps Live Remote Authentication
  • ScreenSteps Live API
  • API Examples
  • Implementation Guides

  • Creating a Software Manual With ScreenSteps
  • Creating a ScreenSteps Live Support Site
  • Zendesk and ScreenSteps Live
  • Help Scout and ScreenSteps Live
  • FAQs

  • FAQs
  • Prev: How Do I Remotely Authenticate a User using ScreenSteps Live Remote Authentication?
  • Next: Installing the WordPress Plugin

How Can I Log a User Into ScreenSteps Live Using PHP And ScreenSteps Live Remote Authentication?

The ScreenSteps Live Remote Authentication feature allows you to log users into ScreenSteps Live using a 3rd party system. We have created a WordPress plugin that works with the ScreenSteps Live Remote Authentication feature in order to give your WordPress users into ScreenSteps Live content.

To inspect the full source code you can download the ScreenSteps Live Remote Login plugin for WordPress.

Releveant Code

global $userdata;
get_currentuserinfo();
$options = get_option('sslive_remote_login');

$sFirstName= $userdata->user_firstname;
$sLastName= $userdata->user_lastname;
$sEmail = $userdata->user_email;
$sExternalID = ""; 
$sOrganization = ""; 
$sToken = $options['token'];

$sReturnToURL = urlencode($_POST['sslive_redirect_url']);

 /* Build the message */
$sTimestamp = (isset($_POST['sslive_redirect_timestamp']) && 
     !empty($_POST['sslive_redirect_timestamp'])) ? $_POST['sslive_redirect_timestamp'] : time(); 
$sMessage = $sFirstName.$sLastName.$sEmail.$sExternalID.$sOrganization.
    $sToken.$sTimestamp; 
$sHash = MD5($sMessage);

$sso_url = 'http://'. $options['domain'] . '/login/remote/?'.
	'first_name='.urlencode($userdata->user_firstname).'&
        last_name='.urlencode($userdata->user_lastname).
	'&email='.urlencode($sEmail).'&external_id='.$sExternalID.
        '&organization='.$sOrganization.
	'&timestamp='.$sTimestamp."&hash=".$sHash.'&return_to_url='.
        $sReturnToURL;
header("Location: ".$sso_url);
exit();

This is the relevant portion of the WordPress plugin code that deals with notifying ScreenSteps Live of a successful login.

  • Prev: How Do I Remotely Authenticate a User using ScreenSteps Live Remote Authentication?
  • Next: Installing the WordPress Plugin
Blue Mango Learning Systems © 2012