Not auto logging into a site

Not auto logging into a site

by Kieran Briggs -
Number of replies: 4

Hi, 

I've set up a test moodle server to be a provider and am trying to connect to it from another moodle.

In the consuming moodle, I've added the LTI provider and used the external tool to link to the provider.  The problem I'm having is that the link only takes me to the login page for the provider.  I can't get it to go straight through to the course and auto create a user?  I'm not sure what I'm missing and any help would be appeciated.

Thanks

 

Kieran

Average of ratings: Useful (1)
In reply to Kieran Briggs

Re: Not auto logging into a site

by Kieran Briggs -

So, on looking into it further.  When I click on the LTI link to go to the provided course it creates the account in the moodle but still only takes them to the login screen rather than the course itself.  Also it doesn't log them in.

In reply to Kieran Briggs

Re: Not auto logging into a site

by jj v -

Did you solve this problem? I am facing the same problem

In reply to jj v

Re: Not auto logging into a site

by Bert van der Hooft -

Did you solve it? I'm having the same problem

In reply to Bert van der Hooft

Re: Not auto logging into a site

by Nigel Hoath -
Are you sending all the required parameters?  Example:

id : 2
user_id : U330001
roles : user
resource_link_id : kkkk
lis_person_name_family : U330001
lis_person_name_given : U330001
lis_person_contact_email_primary : U330001@e2systems.co.uk
context_id : 1
lti_version : LTI-1p0
lti_message_type : basic-lti-launch-request
oauth_callback : about:blank
oauth_consumer_key : EMRLMSconsumer
oauth_version : 1.0
oauth_nonce : 57ab18ccd7a462.96583208
oauth_timestamp : 1470830796
oauth_signature_method : HMAC-SHA1
signature = IOiatS+L3LJzxzuJOji4KUQRB8U=


For example if I remove the 'context_id' I get logged in but see the Moodle dashboard and not the course;  So different combinations of parameters produce unknown, and at times dangerous results.

It is essential the right parameters are sent, even if like resource_link_id they can contain any rubbish you like.

HTH


Average of ratings: Useful (1)