Skip to content

Commit 9de2705

Browse files
authored
Added AMS integration to the IAS variant (#383)
1 parent 41cdd3d commit 9de2705

5 files changed

Lines changed: 38 additions & 1 deletion

File tree

mta-multi-tenant-ias-ams.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ modules:
1313
parameters:
1414
memory: 1024M
1515
disk-quota: 512M
16-
buildpack: sap_java_buildpack_jakarta
16+
buildpacks:
17+
- https://github.com/SAP/cloud-authorization-buildpack/releases/latest/download/opa_buildpack.zip
18+
- sap_java_buildpack_jakarta
1719
routes:
1820
- route: '${default-url}'
1921
- route: '${default-host}.cert.${default-domain}'
@@ -22,6 +24,7 @@ modules:
2224
CDS_MULTITENANCY_APPUI_TENANTSEPARATOR: "-"
2325
JBP_CONFIG_COMPONENTS: "jres: ['com.sap.xs.java.buildpack.jre.SAPMachineJRE']"
2426
JBP_CONFIG_SAP_MACHINE_JRE: '{ version: 21.+ }'
27+
AMS_DCL_ROOT: "/BOOT-INF/classes/ams/"
2528
build-parameters:
2629
builder: custom
2730
commands:

pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<xsuaa.version>3.5.3</xsuaa.version>
2929
<cf-java-logging-support.version>3.8.4</cf-java-logging-support.version>
3030
<cds.cdsdk-version>8.3.0</cds.cdsdk-version>
31+
<ams.client.version>1.7.0</ams.client.version>
3132
</properties>
3233

3334
<modules>
@@ -71,6 +72,19 @@
7172
<version>4.0.0</version>
7273
</dependency>
7374

75+
<!-- AUTHORIZATION MANAGEMENT SERVICE (AMS) -->
76+
<dependency>
77+
<groupId>com.sap.cloud.security.ams.client</groupId>
78+
<artifactId>jakarta-ams</artifactId>
79+
<version>1.7.0</version>
80+
</dependency>
81+
<!-- INTEGRATE CAP WITH AMS -->
82+
<dependency>
83+
<groupId>com.sap.cloud.security.ams.client</groupId>
84+
<artifactId>cap-support</artifactId>
85+
<version>1.7.0</version>
86+
</dependency>
87+
7488
</dependencies>
7589
</dependencyManagement>
7690

srv/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,17 @@
133133
<artifactId>spring-boot-devtools</artifactId>
134134
<optional>true</optional>
135135
</dependency>
136+
137+
<!-- ADD THE AUTHORIZATION MANAGEMENT SERVICE (AMS) -->
138+
<dependency>
139+
<groupId>com.sap.cloud.security.ams.client</groupId>
140+
<artifactId>jakarta-ams</artifactId>
141+
</dependency>
142+
<!-- INTEGRATE CAP WITH AMS -->
143+
<dependency>
144+
<groupId>com.sap.cloud.security.ams.client</groupId>
145+
<artifactId>cap-support</artifactId>
146+
</dependency>
136147
</dependencies>
137148

138149
<build>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
POLICY Admin {
2+
GRANT admin ON $SCOPES;
3+
}
4+
5+
POLICY Expert {
6+
GRANT expert ON $SCOPES;
7+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
SCHEMA {
2+
}

0 commit comments

Comments
 (0)