Get user token in SSO environment

Get user token in SSO environment

by Eric Breton -
Number of replies: 0

Hello everyone,


I see a lot of post of people asking to use Web Services with an SSO auth plugin, but... no answers... 

In order to use a web service, we need to provide a token which can be obtain when providing username and password:

moodle/login/token.php?username=USERNAME&password=PASSWORD&service=SERVICE

Since there is no password in moodle database when using SSO, how can we get a token ??


We upgraded to moodle 3.4 to have the mobile moodle additionnal features, which is fine, I can define like typeoflogin to present an "in app" webview with the predefined login url.

How to intergrate all of that in an external native application that's needs fetching user authenticated data ?


Thank you !


Average of ratings: -