Giter Club home page Giter Club logo

Comments (6)

chdemko avatar chdemko commented on June 13, 2024

You can now precise the login url for each CAS server.

from joomla-external-login.

shteevy avatar shteevy commented on June 13, 2024

Hello Christophe, this answer is not helping :( Even if a page is choosed, we are redirected to the profile page. I experience it again on a fresh install of Joomla. I think something has changed in the routing method in Joomla 3.8.9 release.

Steve.

from joomla-external-login.

chdemko avatar chdemko commented on June 13, 2024

Unfortunatély, I cannot fix this issue for now. You are welcome to propose a Pull Request

from joomla-external-login.

shteevy avatar shteevy commented on June 13, 2024

Thank you Christophe. I'm not a coder but i have some friends that are good but not familiar with Joomla Framework. We search for two days without result. Do you have an advise or some explanation for them ?

from joomla-external-login.

chdemko avatar chdemko commented on June 13, 2024

The issue is starting https://github.com/chdemko/joomla-external-login/blob/master/src/plg_system_caslogin/caslogin.php#L436

Bad information are sent to the com_users component. See https://github.com/joomla/joomla-cms/blob/staging/components/com_users/controllers/user.php (the login task)

from joomla-external-login.

shteevy avatar shteevy commented on June 13, 2024

Hello,

We fix this using this code : ..\plugins\system\caslogin\caslogin.php (line 447)

Replace :

$input->set('option', 'com_users');
$input->set('task', 'user.login');
$input->set('Itemid', 0);
$input->post->set(JSession::getFormToken(), 1);

// We are forced to encode the url in base64 as com_users uses this encoding

$input->post->set('return', base64_encode($return));

By :

$input->set('option', 'com_users');
$input->set('task', 'user.login');
$fix = JFactory::getApplication()
->input
->getInputForRequestMethod();
$fix->set('Itemid', 0);
$input->post->set(JSession::getFormToken(), 1);
														
// We are forced to encode the url in base64 as com_users uses this encoding
$fix->set('return', base64_encode($return));

Is it correct for you ?

Steve

from joomla-external-login.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.