Upload via Git Manager GUI
This commit is contained in:
35
authentik-login.php
Normal file
35
authentik-login.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Plugin Name: Authentik Login
|
||||
* Plugin URI: https://viper-network.de
|
||||
* Description: Login, Registrierung und Rollenübertragung via Authentik (OpenID Connect / OAuth2) – einfache Einrichtung per Discovery-Dokument.
|
||||
* Version: 1.0.0
|
||||
* Author: M_Viper
|
||||
* Author URI: https://m-viper.de
|
||||
* Tested up to: 6.8
|
||||
* PHP Version: 7.4
|
||||
* License: GPL2
|
||||
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
||||
* Text Domain: authentik-login
|
||||
* Tags: authentik, openid connect, oauth2, sso, login, single sign-on
|
||||
* Support: [Discord Support](https://discord.com/invite/FdRs4BRd8D)
|
||||
* Support: [Telegram Support](https://t.me/M_Viper04)
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
define( 'AUTHENTIK_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
||||
define( 'AUTHENTIK_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
|
||||
define( 'AUTHENTIK_VERSION', '1.0.0' );
|
||||
|
||||
// Load modules
|
||||
require_once AUTHENTIK_PLUGIN_DIR . 'includes/settings.php';
|
||||
require_once AUTHENTIK_PLUGIN_DIR . 'includes/oauth.php';
|
||||
require_once AUTHENTIK_PLUGIN_DIR . 'includes/user.php';
|
||||
require_once AUTHENTIK_PLUGIN_DIR . 'includes/login.php';
|
||||
|
||||
// Activation hook
|
||||
register_activation_hook( __FILE__, 'authentik_activate' );
|
||||
function authentik_activate() {
|
||||
add_option( 'authentik_settings', [] );
|
||||
}
|
||||
Reference in New Issue
Block a user