dmitry-viskov / pylti1.3-flask-example

PyLTI1p3 Flask usage example
MIT License
19 stars 29 forks source link

'curr_user_name' always empty #18

Open kalaklanar opened 1 year ago

kalaklanar commented 1 year ago

The curr_user_name never carries a value, either at the app.py level, or when passed to the template game.html from 'curr_user_name': message_launch_data.get('name', ''),

This also doesn't appear in the dump of printing when using print(message_launch_data, flush=True) in the app.py level. The closest thing that is passed is:

'https://purl.imsglobal.org/spec/lti/claim/lti1p1': {    
    'user_id': '512e7dfb54268f2e9bb492b2298982a52d64df55',
    'validation_context': None,
    'errors': {'errors': {}}},
    'errors': {'errors': {}},

I'm not sure if this is a bug in the example code, of if it something that's missing in pylti1p3 (not sending the name in the message). I can make an issue there if that is what is more appropriate.