Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined externalservice shortname #53

Open
minholi opened this issue May 13, 2020 · 1 comment
Open

Undefined externalservice shortname #53

minholi opened this issue May 13, 2020 · 1 comment

Comments

@minholi
Copy link

minholi commented May 13, 2020

To be able to create access tokens it's needed to call this:

https://yourmoodlesite.com/login/token.php?username=foo&password=bar&service=auth_userkey

The variable service points to the webservice shortname, so I need to set it manually on moodle database by using this query:

update mdl_external_services set shortname = 'auth_userkey' where component = 'auth_userkey';

@dmitriim
Copy link
Member

dmitriim commented May 13, 2020

Hi @minholi
Thanks for reporting. This could be fixed by adding 'shortname' to the service declaration in db/services.php
Please feel free to submit a patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants