Search Results for

    Show / Hide Table of Contents

    jQuery SDK

    The Identity Hub has a SDK for JQuery

    Download

    Download the SDK source from here

    Configuration

    Installation

    Use bower to install the sdk in your project.

    Bower

    bower install theidentityhub-jquery
    

    Configure your app

    $.identityService.config({
        baseUrl: "https://www.theidentityhub.com/{tenant}",
        clientId: "[YOUR_CLIENT_ID]",
        redirectUri: "[YOUR_REDIRECT_PAGE]",
        popup: true
    });
    

    Using this configuration the user will be redirected to The Identity Hub to authenticate. After the user is authenticated The Identity Hub will redirect back to your app.

    After sign-in you can use the identityService.principal object to get info on the current user.

    Related

    JQuery Demo Application

    In This Article