Generate scope with user id
@@ -407,7 +407,7 @@ def start_experiment(experiment):
_logger.info('Start experiment with default image.')
spawner_class = get_spawner_class(experiment.specification.framework)
- token_scope = RedisEphemeralTokens.get_scope(experiment.user.username,
+ token_scope = RedisEphemeralTokens.get_scope(experiment.user.id,
'experiment',
experiment.id)
ephemeral_token = RedisEphemeralTokens.generate_header_token(scope=token_scope)
