Moodle for mobile

How to overcome A required parameter (passport) was missing

 
Picture of Sam Suresh
How to overcome A required parameter (passport) was missing
 

Hi

I found even the new 3.5 mobile app have the redirection issue when using OAuth SSO.

When a user logged in using SSO, Moodle throw error 


A required parameter (passport) was missing


Taking Dani's advice on other thread, I have made

http://mysite.com/login/token.php NOT HTTPS but everything else is HTTPS by htaccess. 

However this issue still persists. This is very annoying that everyone have to see an error after login. 

What is the right way to get rid of this issue?

Thanks in advance.

Sam
 
Average of ratings: -
Picture of Dani Palou
Re: How to overcome A required parameter (passport) was missing
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi Sam,

sorry for the delay in answering, it's been some crazy months lately.

Were you able to fix the issue?

Cheers,

Dani

 
Average of ratings: -
Picture of Sam Suresh
Re: How to overcome A required parameter (passport) was missing
 

Hi Dani,


We use custom OAuth service to connect to Moodle OAuth. 

It seems moodle sending out a passport but the response is not returned with a passport id. So the missing passport happens.

I believe this is something to set in OAuth server? However OAuth team cant fix it. I still have this issue and thinking of removing passport parameter. Is it possible since its not a very important element and used to identify request only? What you think?

 
Average of ratings: -
Picture of Dani Palou
Re: How to overcome A required parameter (passport) was missing
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi Sam,

the "passport" parameter is generated by the app to identify the request. Once the SSO is done, the app is opened again with the same passport so it can identify and validate the request. If you remove the passport parameter, the app will be launched but the user won't be authenticated since the app won't be able to validate the passport.

Cheers,

Dani

 
Average of ratings: -