Files
Authentik-Login/authentik-login.php
2026-06-05 22:24:09 +02:00

36 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
/**
* Plugin Name: Authentik Login
* Plugin URI: https://git.viper.ipv64.net/M_Viper/Authentik-Login
* 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', [] );
}