Skip to content

Commit ccee253

Browse files
committed
add basic auth support
1 parent 5499b54 commit ccee253

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

build.gradle.kts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ repositories {
2222

2323
dependencies {
2424
implementation("org.springframework.boot:spring-boot:3.3.0")
25+
implementation("org.springframework.boot:spring-boot-starter-security:3.3.0")
26+
implementation("org.springframework.boot:spring-boot-starter-web:3.3.0")
2527
implementation("org.springframework.cloud:spring-cloud-config-server:4.1.5")
2628
implementation("ch.qos.logback:logback-classic:1.5.6")
27-
implementation("org.springframework.boot:spring-boot-starter-web:3.3.0")
2829
}
2930

3031
fun versionFromGit(): String {

example.application.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
spring:
2+
security:
3+
# Enable basic authentication for the config server
4+
enabled: true
5+
user:
6+
# Set the username to access the config server
7+
name: admin
8+
# Set the password to access the config server
9+
password: "youshallnotpass"
210
profiles:
311
# Set to native to use a local filesystem/static url
412
active: native

0 commit comments

Comments
 (0)