Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 574E8200CE0 for ; Fri, 25 Aug 2017 16:15:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5597D16CAEB; Fri, 25 Aug 2017 14:15:13 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 9C4D116CAE9 for ; Fri, 25 Aug 2017 16:15:12 +0200 (CEST) Received: (qmail 69064 invoked by uid 500); 25 Aug 2017 14:15:09 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 69037 invoked by uid 99); 25 Aug 2017 14:15:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Aug 2017 14:15:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 20E67180C7F for ; Fri, 25 Aug 2017 14:15:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id oXEGFz7cnFfJ for ; Fri, 25 Aug 2017 14:15:06 +0000 (UTC) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A11535FDB8 for ; Fri, 25 Aug 2017 14:15:05 +0000 (UTC) Received: by mail-wm0-f51.google.com with SMTP id z132so3850757wmg.1 for ; Fri, 25 Aug 2017 07:15:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=A0Bq3B2zrAhReKWuSK/t6z/76k7UHPcV4gTxTfn6S8Q=; b=vNHYeAaagCRGB7D1w5viysiTtOUQY6pzLHvA3H6kBJuv2fApqYT8c92RshvRZBoGPb Pr1KT3vmkNZCYJmV1Jf/Pte/4oReowhDvCBb1mXiTXTvkUMRKWSVkg3o68cyngeniV3J b6cfjqbvKxx4q7FPROwMZzWjhJP85UlFBxb1bXVoPT+oi+HG7jq7epxhM3s+StmhP+LD ctf4j5j9KNtj2t0ejJ9eROk6BS5dG2VZIdeikWeX0mFJN0NkukphGeDbw5upQVlENnay JJ3fUTWa1y1PcegXt8N+/nEgeljwZ8Onu7hrw+k+DUFRu6UDx/4mh9svRSfj3HFVEc5m pckg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=A0Bq3B2zrAhReKWuSK/t6z/76k7UHPcV4gTxTfn6S8Q=; b=T+2bJ8NIxmxr0+FLOMQEpX8vmv+VOBPCvVLQVaFleTuh5AkwR7AqukVctwiM+fAmDg lME2HWf18C1HGfi+r7T0n0vSYva56q7JBVD0M6ZCM+oTCOUXwcZ4Vqp2WX+YslgIG/9t QVjYYddrCc2wxr8na7Az6jPX+mxeHLWWGLagFoIZHaMEWhCELnHiJOURqvlKpAn5INLP jmgrzpj07wxnU/WXFaLSiARCwMZKm3tpW/3F3yUff/btztylQRKpyT1Rk0MHjtVENEcf QzLRnlx/LbeuVu8FZDLj/49GBrA0j8WSu5csGnSpHXm8g3mjKsjdNcuBt3xWrRr5TBtA ObNg== X-Gm-Message-State: AHYfb5gnGTzY4QLk6hrGxrwh9BeTa4GJcTVOLXOj2wyHib04KzfNbDeK cxWJYfWNCF++XTUCb6I= X-Received: by 10.80.195.193 with SMTP id i1mr9932316edf.241.1503670498726; Fri, 25 Aug 2017 07:14:58 -0700 (PDT) Received: from [10.36.226.98] ([80.169.137.53]) by smtp.googlemail.com with ESMTPSA id m19sm3274027eda.41.2017.08.25.07.14.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Aug 2017 07:14:58 -0700 (PDT) Subject: Re: providing basic auth via wadl2java? To: users@cxf.apache.org References: From: Sergey Beryozkin Message-ID: <4fcc36c7-8e5a-3d72-55d5-afcc54d80cfc@gmail.com> Date: Fri, 25 Aug 2017 15:14:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit archived-at: Fri, 25 Aug 2017 14:15:13 -0000 I see, makes sense to add a new switch Sergey On 25/08/17 14:52, Shan Syed wrote: > I don't have explicit access to the header via the command line wadl2java, > nor the maven plugin > > > > On Fri, Aug 25, 2017 at 6:24 AM, Sergey Beryozkin > wrote: > >> Hi >> >> Why can't they be sent as the header ? Otherwise I guess one needs to >> configure the HTTP container somehow for the name and password be extracted >> out of URI and matched against the BasicAuth module... >> >> Sergey >> >> On 25/08/17 01:10, Shan Syed wrote: >> >>> Hey there, >>> >>> I need to generate client code for a WADL, hosted on a remote server I >>> don't control. >>> The WADL has very deep includes, that reference other xml files hosted on >>> the same server. >>> Downloading them all isn't practical, because it's a very deep hierarchy. >>> >>> The WADL is also served off of a webserver that asserts basic auth. >>> >>> I'm trying both the cxf wadl2java download, and the maven plugin; neither >>> seem to work when I provide basic auth details like this: >>> >>> https://whateverusernamer:somepassword@whatever.com?wadl >>> >>> A 401 error is returned, and the basic auth parameters aren't sent to the >>> server this way. >>> >>> Is there a way to specify user/password for basic auth on a remote WADL? >>> >>> Thanks >>> >>> >