SSO login script to Moodle

SSO login script to Moodle

by T K -
Number of replies: 0
We are using Moodle 3.4

We have a student portal, that uses a customised SSO login script to access their learning materials on Moodle.

RIght now we are facing that course overview & courses enrolled doesnt not update immediately upon login via SSO login. However if the same user were to login direct, it loads find. 

We are looking into the SSO login scrip to see what we can improve.

Basically there are 2 functions being called.

 

authenticate_user_login

complete_user_login

 

We are able to login to moodle with 2 of these functions but happening that moodle didn’t recognise the users at the first place once redirected to the moodle .

It takes 30seconds to load the courses based on user's enrollment, otherwise it treats the site page as a 'guest' and loads all the courses list.

what does moodle do with this variable in the session ‘justloggedin’ and possible is it possible that moodle rely on cronjob or any process behind to recognise the users based on this variable?


Average of ratings: -