From e28b137fb0dd8d8b6b62c8fa710d70d2b2fdba20 Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Thu, 12 Feb 2015 10:31:02 +0000 Subject: [PATCH] Clarify how to set basic auth credentials in config See gh-55 --- docs/src/main/asciidoc/spring-cloud-config.adoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/src/main/asciidoc/spring-cloud-config.adoc b/docs/src/main/asciidoc/spring-cloud-config.adoc index dc80aea6..fb0e7667 100644 --- a/docs/src/main/asciidoc/spring-cloud-config.adoc +++ b/docs/src/main/asciidoc/spring-cloud-config.adoc @@ -111,6 +111,20 @@ pattern is "simple" (i.e. it only matches one application). The pattern format is a comma-separated list of application names with wildcards. +To use HTTP basic authentication on the remote repository add the +"username" and "password" properties separately (not in the URL), +e.g. + +---- +spring: + cloud: + config: + server: + git: + uri: https://github.com/spring-cloud-samples/config-repo + username: trolley + password: strongpassword +---- ==== File System Backend