'Generate a JWT id_token that looks like the ones currently
returned by the edx oidc provider.'

def generate_id_token(self, user, ttl=1, **overrides):

    payload = self.default_payload(user=user, ttl=ttl)
    payload.update(overrides)
    return self.generate_token(payload)
