Skip to content
Permalink
Browse files
Describe authentication in brooklyn.libraries
  • Loading branch information
sjcorbett committed Dec 19, 2017
1 parent e2711a9 commit bc0b1d871494f122a548cbf8c6609fa2fc1ebcf6
Showing 1 changed file with 8 additions and 0 deletions.
@@ -158,6 +158,9 @@ brooklyn.libraries:
- name: "symbolic-name"
version: "1.0"
url: "http://example.com/bundle-1.0.jar"
auth:
username: $brooklyn:external("myprovider", "username")
password: $brooklyn:external("myprovider", "password")
~~~
The only mandatory property in the long form is `url`. Brooklyn will skip the download when a bundle with matching `name` and `version` is already installed.

@@ -167,6 +170,11 @@ whenever a bundle is reloaded in a Brooklyn server,
and if entities have been deployed against that version, their behavior may change in subtle or potentially incompatible ways.
To avoid this situation, it is highly recommended to use OSGi version stamps as part of the URL.

Specify `auth` if the resource at `url` requires authentication to access.
Do not write the username and password directly into the file; instead
use [external configuration]({{book.path.docs}}/ops/externalized-configuration.md)
to reference the values.

**`include`**
A URL to another catalog file to include, inheriting the meta from the current hierarchy.
Libraries defined so far in the meta will be used to load classpath entries. `include` must be used

0 comments on commit bc0b1d8

Please sign in to comment.