token authentication

token authentication

by hassan farhadi -
Number of replies: 3

Hi,

I want authenticate login in moodle with another software, external software give me username and a token with this link

http://mymoodle.com/?user=xxxx,token=xxxxx

and I want authenticate user in moodle

if user is exist in moodle, just will be authenticate user and if user not exist, moodle will should be created and authenticate it

 can you tell me step by step, how can I do? I'm new in moodle 

 

Thanks

Average of ratings: -
In reply to hassan farhadi

Re: token authentication

by Daniel Miranda -

Its seems so weak. The token is regenerated in every login or not?

You must not pass userid by get parameters. Try to implement something like OAuth2 in the external system.

In reply to Daniel Miranda

Re: token authentication

by Charan Sri -

I am using webservices api and I already have a user token. Is it possible to login to moodle website using that token?


Thanks

Charan