jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi Barrera <notificati...@github.com>
Subject Re: [jclouds/jclouds] rename oauth properties (#1014)
Date Mon, 26 Sep 2016 14:04:45 GMT
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:
View raw message