Skip to content

Commit

Permalink
From Vault to SM for reactive-rest-example.
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc3092 committed Oct 21, 2024
1 parent 760cd6b commit 194d562
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 24 deletions.
5 changes: 2 additions & 3 deletions examples/reactive-rest-example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ Alle på teamet er ansvarlig for at vi sammen er enig om en standard.

## lokal kjøring

Start `ReactiveRestExampleApplicationStarter` med følgenede props:

Start `ReactiveRestExampleApplicationStarter` med:
```
-Dspring.profiles.active=local -Dspring.cloud.vault.token=<<VAULT_TOKEN>>
-Dspring.profiles.active=local
```
3 changes: 0 additions & 3 deletions examples/reactive-rest-example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,12 @@ sonarqube {
dependencies {
implementation "no.nav.testnav.libs:reactive-core"
implementation "no.nav.testnav.libs:reactive-security"
implementation "no.nav.testnav.libs:vault"

implementation "org.springframework.boot:spring-boot-starter-webflux"
implementation "org.springframework.boot:spring-boot-starter-oauth2-resource-server"
implementation "org.springframework.boot:spring-boot-starter-data-r2dbc"

implementation "org.springframework.cloud:spring-cloud-starter-bootstrap" // TODO remove legacy bootstrap config
implementation "org.springframework.cloud:spring-cloud-starter-vault-config"


implementation "io.r2dbc:r2dbc-h2"
implementation "org.postgresql:r2dbc-postgresql"
Expand Down
1 change: 0 additions & 1 deletion examples/reactive-rest-example/settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ includeBuild "../../plugins/java"

includeBuild '../../libs/reactive-core'
includeBuild '../../libs/reactive-security'
includeBuild '../../libs/vault'

develocity {
buildScan {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ spring:
application:
# Override name
name: reactive-rest-example-local
config:
import: "sm://"
flyway:
# InMemmory database
url: jdbc:h2:mem:testdb
username: sa
password:
password:
security:
oauth2:
resourceserver:
aad:
accepted-audience: ${sm://azure-app-client-id}, api://${sm://azure-app-client-id}

This file was deleted.

0 comments on commit 194d562

Please sign in to comment.