jupyterhub / ltiauthenticator

A JupyterHub authenticator for LTI
https://ltiauthenticator.readthedocs.io
BSD 3-Clause "New" or "Revised" License
67 stars 54 forks source link

feat(lti13) Username calculation #193

Open florian-jaeger opened 7 months ago

florian-jaeger commented 7 months ago

Proposed change

Allow username_key value to be a function for username calculation.

Who would use this feature?

Users who want to customise usernames without adding custom LTI claims.

Suggest a solution

Turn username_key into a Union traitlet which can be either Unicode or Callable(function with an ID token parameter, which returns the username in LTI13Authenticator.get_username).

Alternatively a new Callable traitlet could be added instead.

welcome[bot] commented 7 months ago

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively. welcome You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada: