edina / nbexchange

External exchange for nbgrader
Other
6 stars 2 forks source link

How the value of cust_id is used? #169

Closed ykazakov closed 1 month ago

ykazakov commented 1 month ago

According to README, nbexchange needs to be configured to return the following values for the user:

def get_current_user(self, request):
        return {
          "name": "username",
          "full_name": "Joe Bloggs",
          "course_id": "cool_course_id",
          "course_title": "cool course",
          "course_role": "Student",
          "org_id": 1,
          "cust_id": 2,
    }

What is exactly cust_id? Should it be always provided? Should it be always a number? Should it be unique for each user? I do not seem to find any place in the source code where this value is used. If I search for this string, I find only 3 references in the repository, all in examples.