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

Moodle: send notification if token expired #64

Open
SIMULATAN opened this issue Dec 6, 2024 · 1 comment
Open

Moodle: send notification if token expired #64

SIMULATAN opened this issue Dec 6, 2024 · 1 comment
Labels
integration Directly related to an integration - independent from framework or application

Comments

@SIMULATAN
Copy link
Contributor

SIMULATAN commented Dec 6, 2024

Moodle tokens expire after 12 weeks (hard-coded, see https://github.com/moodle/moodle/blob/0888a6d324e960ff2d572b3fe371c362bf907536/lib/external/classes/util.php#L423-L424 and https://github.com/moodle/moodle/blob/0888a6d324e960ff2d572b3fe371c362bf907536/admin/settings/security.php#L135-L137).

Send a notification using the user notification service to let the user know they have to refresh it.

Requires #51

@SIMULATAN SIMULATAN added the integration Directly related to an integration - independent from framework or application label Dec 6, 2024
@SIMULATAN
Copy link
Contributor Author

Response when the token expired:
{"exception":"moodle_exception","errorcode":"invalidtoken","message":"Ung\u00fcltiges Token - Token wurde nicht gefunden"}

Seems to be the same as regular invalid tokens :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integration Directly related to an integration - independent from framework or application
Projects
None yet
Development

No branches or pull requests

1 participant