-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathauthentiq.php
executable file
·73 lines (61 loc) · 2.22 KB
/
authentiq.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/**
* Plugin Name: Authentiq
* Plugin URI: https://wordpress.org/plugins/authentiq
* Description: Sign in (and sign up) to WordPress sites using the Authentiq ID app. Strong authentication, without the passwords.
* Version: 1.0.6
* Author: The Authentiq Team
* Author URI: https://www.authentiq.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: authentiq
* Domain Path: /languages
*/
if (!defined('WPINC')) {
exit();
}
define('AUTHENTIQ_PLUGIN_FILE', __FILE__);
define('AUTHENTIQ_PLUGIN_BASENAME', plugin_basename( __FILE__ ));
define('AUTHENTIQ_PLUGIN_DIR', trailingslashit(plugin_dir_path(__FILE__)));
define('AUTHENTIQ_PLUGIN_URL', trailingslashit(plugin_dir_url(__FILE__)));
define('AUTHENTIQ_VERSION', '1.0.6');
define('AUTHENTIQ_NAME', 'authentiq');
define('AUTHENTIQ_LANG', AUTHENTIQ_NAME);
define('AUTHENTIQ_LOGIN_FORM_QUERY_PARAM', 'aqwpl');
define('AUTHENTIQ_OP_REDIRECT_QUERY_PARAM', 'authentiq');
if (!defined('AUTHENTIQ_PROVIDER_BASE_URL')) {
define('AUTHENTIQ_PROVIDER_BASE_URL', 'https://connect.authentiq.io/');
}
define('AUTHENTIQ_PROVIDER_AUTHORIZE_URL', AUTHENTIQ_PROVIDER_BASE_URL . 'authorize');
define('AUTHENTIQ_PROVIDER_TOKEN_URL', AUTHENTIQ_PROVIDER_BASE_URL . 'token');
define('AUTHENTIQ_PROVIDER_USERINFO_URL', AUTHENTIQ_PROVIDER_BASE_URL . 'userinfo');
/**
* Runs during plugin activation.
*/
function activate_authentiq() {
require_once AUTHENTIQ_PLUGIN_DIR . 'includes/class-authentiq-activator.php';
Authentiq_Activator::activate();
}
register_activation_hook(__FILE__, 'activate_authentiq');
/**
* Runs during plugin deactivation.
*/
function deactivate_authentiq() {
require_once AUTHENTIQ_PLUGIN_DIR . 'includes/class-authentiq-deactivator.php';
Authentiq_Deactivator::deactivate();
}
register_deactivation_hook(__FILE__, 'deactivate_authentiq');
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require AUTHENTIQ_PLUGIN_DIR . 'includes/class-authentiq.php';
/**
* Begins execution of the plugin.
*
* @since 1.0.0
*/
function run_authentiq() {
$plugin = new Authentiq();
}
run_authentiq();