The system should provide a way to parse, store and access the id_token received from Moodle by writing it into our own data structures. The system currently raises an error when parsing the token. This process needs to be expanded to include storage of the token in our own data structures and appropriate retrieval methods.
Describe the Impact on the System
This feature will impact the way we handle and store the id_token from Moodle. Changes will be expected in the parsing and exception handling of the id_token and in the methods we use to store and retrieve tokens. Furthermore, this will likely require new data structures or modifications to existing ones to accommodate the stored id_token.
Definition of Done
[ ] Develop a robust parsing mechanism that validates the id_token and extracts the necessary data.
[ ] Design and implement new data structures or modify existing ones to store the parsed id_token.
[ ] Create methods for storing and retrieving the id_token from the new data structures.
[ ] Handle exceptions appropriately when the id_token is invalid or other errors occur during parsing and storing.
[ ] Linting Code to Python standard.
[ ] Testing code with Pytest. All tests within the system should still be ok. This includes tests for successful parsing and storage of the id_token, retrieval of the id_token from the data structures, and appropriate error handling.
[ ] Documentation updated to explain how the id_token is parsed, stored, and accessed.
Describe the feature to be developed
The system should provide a way to parse, store and access the
id_token
received from Moodle by writing it into our own data structures. The system currently raises an error when parsing the token. This process needs to be expanded to include storage of the token in our own data structures and appropriate retrieval methods.Describe the Impact on the System
This feature will impact the way we handle and store the
id_token
from Moodle. Changes will be expected in the parsing and exception handling of theid_token
and in the methods we use to store and retrieve tokens. Furthermore, this will likely require new data structures or modifications to existing ones to accommodate the storedid_token
.Definition of Done
id_token
and extracts the necessary data.id_token
.id_token
from the new data structures.id_token
is invalid or other errors occur during parsing and storing.id_token
, retrieval of theid_token
from the data structures, and appropriate error handling.id_token
is parsed, stored, and accessed.