def get_token_for_user(user, scope):
 data = {('user_%s_id' % scope): user.id}
 return signing.dumps(data)

def get_token_for_user ( user , scope ) : data = { ( 'user_%s_id' % scope ) : user . id } return signing . dumps ( data )
generate a new signed token containing a specified user limited for a scope .