• I am trying to integrate it with SSO Keycloak, everything seems functional except that I still need the login screen.

    I tried adding the login button using the shortcode but it is only available in the standard subscription.
    I see there is a widget option before the shortcode, but my current plugin seems to not suport it.
    I even tried adding the plugin classic widget but that also does not work.
    Is there any way It can work ?
    Is there a way I can call the widget php code from the backend?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Márcio Lopes F?o

    (@marciofao)

    After some ressearch of the plugin inner workings this code worked by calling the widget from PHP:

    ?the_widget('mooauth_widget');die;

    Also this way I can setup a custom login page that will redirect it to the keycloack authentication page:

    <div style="display: none;">

    ? ? ? ? ? ? <?php

    ? ? ? ? ? ? the_widget('mooauth_widget');

    ? ? ? ? ? ? ?>

    ? ? ? ? </div>

    ? ? ? ? <script>

    ? ? ? ? ? ? //attach listener to dom load

    ? ? ? ? ? ? document.addEventListener('DOMContentLoaded', function() {

    ? ? ? ? ? ? ? ? moOAuthLoginNew('keycloak');

    ? ? ? ? ? ? });

    ? ? ? ? </script>

    ? ? ? ? <?php die; ?>


    Hello,

    Thank you for sharing this solution. It will be helpful to other users in the WordPress community.

    We appreciate your contribution and encourage you to keep sharing.

    Thank you,
    miniOrange Team

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.