Moodle for mobile

Moodle Desktop App v 3.5 MacOS - won't accept my SSO credentials

 
Picture of Brian Warling
Re: Moodle Desktop App v 3.5 MacOS - won't accept my SSO credentials
 

Under mobile settings, "Type of Login" was set to "via an embedded browser (for SSO plugins)". It has been set like this since we began using the mobile app in August 2017. Accessing our Moodle site has worked fine in iOS, both before and after the mobile app 3.5 upgrade. It also worked fine using the desktop app, prior to the 3.5 upgrade (as I noted earlier). But since upgrading the desktop app to 3.5 (along with our recent upgrade to Moodle 3.4), the desktop app gives the "username you entered cannot be identified" error. So, with the "login via embedded browser" setting, we can log in on iOS, but not the desktop app (again, version 3.5).

I changed the login type setting to "via a browser window (for SSO plugins)". With this setting, I AM now able to log into our Moodle site on the desktop app (it sends me to my web browser to log in, then passes me back to the desktop app). Logging in on iOS also continues to work.

So the question seems to be why does mobile desktop app authentication work with the "via a browser window" setting, but not with the "via an embedded browser" setting? Prior to the desktop app update to 3.5, we were able to login via an embedded browser. I imagine there could be something about the way our campus authentication is set up that (now) prohibits login via an app's embedded browser. But I'm also wondering if there might be something different in the desktop app (3.5)?

Thanks... Brian

 
Average of ratings: -
Picture of Anna Dang
Re: Moodle Desktop App v 3.5 MacOS - won't accept my SSO credentials
 

Hi Brian,


I'm having the same issue with SSO log in not working on desktop version. How did you change the type of login settings to via browser?

thank you

 
Average of ratings: -
Picture of Dani Palou
Re: Moodle Desktop App v 3.5 MacOS - won't accept my SSO credentials
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi Brian and Anna,

sorry, I totally missed this discussion sad

The desktop app should work fine with the "via an embedded browser" setting. I just tested this and it worked fine for me in one of our sites.

Anna, you have some info about this setting in here:

https://docs.moodle.org/35/en/Moodle_app_guide_for_admins#Mobile_authentication

Kind regards,

Dani

 
Average of ratings: -
Picture of Brian Warling
Re: Moodle Desktop App v 3.5 MacOS - won't accept my SSO credentials
 

Unfortunately, as I detailed above, we can no longer log into our Moodle 3.4 site with the latest version of the desktop app (I'm happy to hear it works for many others). We have it set to use an embedded browser. It does not work. Whether there is something different in our SSO configuration that is causing some sort of conflict with the new desktop app version, I can't say; and I can't do anything about. Just know that we ARE able to log into the latest iOS version with no problems. And, as I mentioned, if I change the mobile authentication setting to log in via a browser window, then I am able to log in via the desktop app. 

I think there is something inherently different about the latest desktop app version that is causing this issue. It used to work (with the previous version)... it doesn't with the new version (all other things being equal). Perhaps this issue is local to our SSO implementation. But it's not worth investigating further on our end.

Thanks.. Brian

 
Average of ratings: -
Picture of Dani Palou
Re: Moodle Desktop App v 3.5 MacOS - won't accept my SSO credentials
Core developersMoodle HQParticularly helpful MoodlersPlugin developers

Hi Brian,

I'm sorry to hear it isn't working. When we upgraded the app to 3.5 we also updated the Electron version (the framework we use to build the desktop apps). This update forced us to change a bit how SSO works with embedded browser, I guess that's why it was working before but now it doesn't.

What happens after you authenticate in an embedded browser in your site?

After the user authenticates in the embedded browser, the site should redirect him to the launch page, and that page should display a message saying something like "Click here if the app does not open automatically". The app should detect this case and close the embedded browser, authenticating the user.

Kind regards,

Dani

 
Average of ratings: -
Picture of Brian Warling
Re: Moodle Desktop App v 3.5 MacOS - won't accept my SSO credentials
 

Hi Dani --

I detailed what happens in my initial post. I launched Moodle Desktop on my app. I enter the URL for our Moodle site. This opens our SSO login page (in an embedded browser) where I enter my credentials. I enter my credentials on our SSO login page, and it returns this error: "The username you entered cannot be identified." I entered the correct username and password. I've attached the error I see on our SSO login page.

I hope this helps. Thanks... Brian


 
Average of ratings: -