How to get mobile web service token using OAuth?

How to get mobile web service token using OAuth?

by Rafael Madalóz -
Number of replies: 2

I know that normally to get the token you make a request to:

https://www.yourmoodle.com/login/token.php?username=USERNAME&password=PASSWORD&service=SERVICESHORTNAME

It works, but I'm developing an app client for my university, which logs into moodle using OAuth.

Users already have mobile web service tokens, and that is also enabled. But I don't want to create a page in my app where the user enters their username and password, but rather that they authenticate through the university system, just like it works in the Moodle app itself. So how can I get the token to use the mobile web service using OAuth?

Average of ratings: -
In reply to Rafael Madalóz

Re: How to get mobile web service token using OAuth?

by Brian Merritt -
Picture of Particularly helpful Moodlers
I was hoping someone would answer this positively, but it it seems not likely.

Maybe it is worth reviewing the mobile app login code for how it handles OAuth logins?
In reply to Brian Merritt

Re: How to get mobile web service token using OAuth?

by Selim Temizer -
I have the same problem. I would like to get tokens for users logging with their Google accounts.

Any solutions yet?