auth0.module in Auth0 Single Sign On 8
Same filename and directory in other branches
Module definition
File
auth0.moduleView 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
Name | Description |
---|---|
auth0_theme | Replace a form with the lock widget. |
auth0_user_delete | Handle users deletion, it shoudl delete the auth0 profile. |