How to get mobile web service token using OAuth?

How to get mobile web service token using OAuth?

Nosūtīja Rafael Madalóz
Atbilžu skaits: 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?

Vidējais novērtējums: -
Atbildot uz Rafael Madalóz

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

Nosūtīja Brian Merritt
Particularly helpful Moodlers attēls
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?
Atbildot uz Brian Merritt

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

Nosūtīja Selim Temizer
I have the same problem. I would like to get tokens for users logging with their Google accounts.

Any solutions yet?