You are here

auth0.module in Auth0 Single Sign On 8

Same filename and directory in other branches
  1. 8.2 auth0.module
  2. 7.2 auth0.module

Module definition

File

auth0.module
View source
<?php

/**
 * @file
 * Module definition
 */

/**
 * Replace a form with the lock widget.
 */
function auth0_theme() {
  return array(
    'auth0_login' => array(
      'template' => 'auth0-login',
      'variables' => array(
        'domain' => NULL,
        'clientID' => NULL,
        'state' => NULL,
        'showSignup' => NULL,
        'widgetCdn' => NULL,
        'loginCSS' => NULL,
        'callbackURL' => NULL,
        'lockExtraSettings' => '{}',
      ),
    ),
  );
}

/**
 * Handle users deletion, it shoudl delete the auth0 profile.
 */
function auth0_user_delete($account) {
  db_delete('auth0_user')
    ->condition('drupal_id', $account->uid->value)
    ->execute();
}

Functions

Namesort descending Description
auth0_theme Replace a form with the lock widget.
auth0_user_delete Handle users deletion, it shoudl delete the auth0 profile.