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 BC235200B8E for ; Mon, 26 Sep 2016 16:05:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BA8F2160AC8; Mon, 26 Sep 2016 14:05:00 +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 D60BA160AB8 for ; Mon, 26 Sep 2016 16:04:59 +0200 (CEST) Received: (qmail 98547 invoked by uid 500); 26 Sep 2016 14:04:59 -0000 Mailing-List: contact notifications-help@jclouds.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jclouds.apache.org Delivered-To: mailing list notifications@jclouds.apache.org Received: (qmail 98536 invoked by uid 99); 26 Sep 2016 14:04:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2016 14:04:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 4F3AB1A0382 for ; Mon, 26 Sep 2016 14:04:58 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.228 X-Spam-Level: X-Spam-Status: No, score=-0.228 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-1.426, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=github.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id irXQg7gt-iFE for ; Mon, 26 Sep 2016 14:04:54 +0000 (UTC) Received: from o1.sgmail.github.com (o1.sgmail.github.com [192.254.114.176]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B69585FE62 for ; Mon, 26 Sep 2016 14:04:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=github.com; h=from:reply-to:to:in-reply-to:references:subject:mime-version:content-type:content-transfer-encoding:list-id:list-archive:list-post:list-unsubscribe; s=s20150108; bh=ka7SQWjq1qX747YLqtzWqH3+rIs=; b=PTx6u69oLxEtsJKo TDUGQUWFsGRMOyNh08KfBCP2QAKzTKg9DCbM+M/iIXYjQEbbvWI9vHUbqc9HYmr5 y1lGIVWOJURDvAX/C2MrV30kpHTP8nirDz3pv/J6mOztd9/O3dZQkrPO5q186Sbf FPjRb9J2HBz32aD9Ur1sd3eMVl8= Received: by filter0252p1las1.sendgrid.net with SMTP id filter0252p1las1.9669.57E92AFE20 2016-09-26 14:04:46.489701269 +0000 UTC Received: from github-smtp2a-ext-cp1-prd.iad.github.net (github-smtp2a-ext-cp1-prd.iad.github.net [192.30.253.16]) by ismtpd0013p1las1.sendgrid.net (SG) with ESMTP id oLH11h_CTrG7X4QvKpKtpw for ; Mon, 26 Sep 2016 14:04:46.182 +0000 (UTC) Date: Mon, 26 Sep 2016 07:04:45 -0700 From: Ignasi Barrera Reply-To: jclouds/jclouds To: jclouds/jclouds Message-ID: In-Reply-To: References: Subject: Re: [jclouds/jclouds] rename oauth properties (#1014) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_57e92afd60984_102c3f91e842129c1995c7"; charset=UTF-8 Content-Transfer-Encoding: 7bit X-GitHub-Sender: nacx X-GitHub-Recipient: jclouds-mirror List-Archive: https://github.com/jclouds/jclouds X-Auto-Response-Suppress: All X-GitHub-Recipient-Address: notifications@jclouds.apache.org X-SG-EID: VxvoBXE5+A8mhY6zmL/mbotvJJQtG2vCsNXJIAH0FE9dVN9yLtNnU453ZrJ7Ltinis3hF3cwlIUBFS RjQdxUUhPyMYlA4sh0qcG0PYrZi0gQx5Zyt4Dfc3MrEYf1O1ZNJC1yopkwJBd/GFye4PsyBnGqgL7D JBDlOis/TwNL90F+lEmrMGB2fMLE/K3khGqfNiR0A6J/AQA1meKenxvAwbp+eB3oz06vwyXEUQSwk3 b4J0qn65+yj6GfyeKf9IR7 archived-at: Mon, 26 Sep 2016 14:05:00 -0000 ----==_mimepart_57e92afd60984_102c3f91e842129c1995c7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Well, I'd say the wrong properties are the ones you point in this last comment, as they double-prefix the property. When jclouds creates the context, it tries to resolve the properties that are prefixed with the "provider id", and if not, it tries to resolve them with the "jclouds" prefix. You can see how this is done [here](https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/ContextBuilder.java#L414). This allows users to configure the same properties with different values for different providers, which is desirable if you run one single app that consumes several apis; the "identity" property should be different for each connection. Apart from the override properties, jclouds loads all properties prefixed with "jclouds" or the "provider id" that are configured as systme properties (see [here](https://github.com/jclouds/jclouds/blob/master/core/src/main/java/org/jclouds/ContextBuilder.java#L373)), so you can have global configuration variables for all providers. So, in this case, "oauth" is the prefix, designating the endpoint the oauth api uses. It would not be correct to double-prefix it as "jclouds.oauth". -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds/pull/1014#issuecomment-249578664 ----==_mimepart_57e92afd60984_102c3f91e842129c1995c7 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Well, I'd say the wrong properties are the ones you point in this last c= omment, as they double-prefix the property. When jclouds creates the contex= t, it tries to resolve the properties that are prefixed with the "provider = id", and if not, it tries to resolve them with the "jclouds" prefix. You ca= n see how this is done here.

This allows users to configure the same properties with different values= for different providers, which is desirable if you run one single app that= consumes several apis; the "identity" property should be different for eac= h connection. Apart from the override properties, jclouds loads all propert= ies prefixed with "jclouds" or the "provider id" that are configured as sys= tme properties (see here), so y= ou can have global configuration variables for all providers.

So, in this case, "oauth" is the prefix, designating the endpoint the oa= uth api uses. It would not be correct to double-prefix it as "jclouds.oauth= ".

&mda= sh;
You are receiving this because you are subscribed to this thread.<= br />Reply to this email directly, view it on GitHub, or mute the thread.3D""