How To: Sign into your PHP web site with The Identity Hub (OAuth 2.0)

Summary

In this topic you will learn the neccesary steps to allow users to login to your PHP sites using The Identity Hub - {tenant} via OAuth 2.0.

Contents

  • Objectives
  • Summary of Steps
  • Step 1 - Create and configure an App for your PHP web site
  • Step 2 - Download and apply the PHP SDK
  • Step 3 - Use the SDK

Objectives

  • Sign into your PHP sites using The Identity Hub - {tenant}

Summary of Steps

  • Step 1 - Create and configure an App for your PHP web site
  • Step 2 - Download and apply the PHP SDK
  • Step 3 - Use the SDK

Step 1 - Create and configure an App for your PHP web site

In this step you will create and configure an App for your PHP web site.

For more information about Apps see How To: What is an App?.

  • Navigate to the Apps Admin Page and click on New.

  • Provide the following information
    • Name: The name of the app. Give a name to identify your PHP web site

    • Description: The description of the app.

  • Open the OAuth 2.0 parameters section by clicking on the arrow.

  • Provide the following information
    • Token life time: The time a token remains valid after it is created in hours and minutes.

    • Redirection Uri: One of more uri that are valid redirect uri for your application (OAuth Client). Place each url on a seperate line. Only https is allowed. For the PHP SDK this will be "https://[your web url]/theidentityhub/callback.php".

  • Click Save. You will navigate to the detail page of the just created App.


Step 2 - Download and apply the PHP SDK

  • Open the Web Applications PHP section by clicking on the arrow.

  • Click the SDK link to download the preconfigured SDK for the App.

  • To install just extract the zip file and add the SDK folder to directory of the project.


Step 3 - Use the SDK

In this step you will learn how to use the PHP SDK.

See Using the SDK