'Get a token for a stack domain user.'

def stack_domain_user_token(self, user_id, project_id, password):

    if (not self.stack_domain):
        msg = _('Cannot    get    stack    domain    user    token,    no    stack    domain    id    configured,    please    fix    your    heat.conf')
        raise exception.Error(msg)
    auth = ks_auth.Password(auth_url=self.v3_endpoint, user_id=user_id, password=password, project_id=project_id)
    return auth.get_token(self.session)
