From 4c399c79d723dd7b6f8fdb33e4a56b63d4c096ea Mon Sep 17 00:00:00 2001 From: Roman Karwacik Date: Sat, 6 Jul 2024 12:49:54 +0200 Subject: [PATCH] TOTP: Clarified README and --help --- README.md | 6 ++++-- syncmymoodle/__main__.py | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 03e29d6..cf6bd4d 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,9 @@ options: storing and retrieving account credentials --user USER set your RWTH Single Sign-On username --password PASSWORD set your RWTH Single Sign-On password - --totp TOTP set your RWTH Single Sign-On TOTP provider + --totp TOTP set your RWTH Single Sign-On TOTP provider's serial + number (see + https://idm.rwth-aachen.de/selfservice/MFATokenManager) --config CONFIG set your configuration file --cookiefile COOKIEFILE set the location of a cookie file @@ -136,7 +138,7 @@ configuration does: "only_sync_semester": [], // Only the specified semesters (e.g. ["23ss", "22ws"]) will be synced. `selected_courses` overrides this option. "user": "", // RWTH SSO username "password": "", // RWTH SSO password - "totp": "", // RWTH SSO TOTP "Serial Number", format: TOTP0000000A + "totp": "", // RWTH SSO TOTP "Serial Number", format: TOTP0000000A, see https://idm.rwth-aachen.de/selfservice/MFATokenManager "basedir": "./", // The base directory where all your files will be synced to "cookie_file": "./session", // The location of the session/cookie file, which can be used instead of a password. "use_secret_service": false, // Use the Secret Service integration (see README), instead of a password or a cookie file. diff --git a/syncmymoodle/__main__.py b/syncmymoodle/__main__.py index 4d07599..ac12599 100755 --- a/syncmymoodle/__main__.py +++ b/syncmymoodle/__main__.py @@ -1128,7 +1128,7 @@ def main(): "--password", default=None, help="set your RWTH Single Sign-On password" ) parser.add_argument( - "--totp", default=None, help="set your RWTH Single Sign-On TOTP provider" + "--totp", default=None, help="set your RWTH Single Sign-On TOTP provider's serial number (see https://idm.rwth-aachen.de/selfservice/MFATokenManager)" ) parser.add_argument("--config", default=None, help="set your configuration file") parser.add_argument(