|
|
@ -12,6 +12,9 @@ class OpenID_Connect_Generic_Login_Form {
|
|
|
|
function __construct( $settings, $client_wrapper ){
|
|
|
|
function __construct( $settings, $client_wrapper ){
|
|
|
|
$this->settings = $settings;
|
|
|
|
$this->settings = $settings;
|
|
|
|
$this->client_wrapper = $client_wrapper;
|
|
|
|
$this->client_wrapper = $client_wrapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// maybe set redirect cookie on formular page
|
|
|
|
|
|
|
|
add_action('login_form_login', [$this, 'handle_redirect_cookie']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
@ -132,9 +135,6 @@ class OpenID_Connect_Generic_Login_Form {
|
|
|
|
$text = apply_filters( 'openid-connect-generic-login-button-text', __( 'Login with OpenID Connect' ) );
|
|
|
|
$text = apply_filters( 'openid-connect-generic-login-button-text', __( 'Login with OpenID Connect' ) );
|
|
|
|
$href = $this->client_wrapper->get_authentication_url();
|
|
|
|
$href = $this->client_wrapper->get_authentication_url();
|
|
|
|
|
|
|
|
|
|
|
|
// maybe set redirect cookie on formular page
|
|
|
|
|
|
|
|
$this->handle_redirect_cookie();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ob_start();
|
|
|
|
ob_start();
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
<div class="openid-connect-login-button" style="margin: 1em 0; text-align: center;">
|
|
|
|
<div class="openid-connect-login-button" style="margin: 1em 0; text-align: center;">
|
|
|
|