Skip to content

Commit d571b42

Browse files
committed
minor improvements on sample documentation
1 parent 7758067 commit d571b42

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

samples/sap-java-buildpack-api-usage/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ If not you should get a `403` status code (Forbidden).
130130

131131
> Note: you can find the route of your approuter application using `cf app approuter-sap-java-buildpack-api-usage`.
132132
133-
### Clean-Up
133+
## Clean-Up
134134

135135
Finally delete your application and your service instances using the following commands:
136136
```

samples/spring-security-basic-auth/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ You will get a response like:
125125
}
126126
```
127127

128-
### Clean-Up
128+
## Clean-Up
129129

130130
Finally delete your application and your service instances using the following commands:
131131
```

samples/spring-security-xsuaa-usage/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ After deployment, the AppRouter will trigger authentication automatically when y
5656

5757
* `https://spring-security-xsuaa-usage-web-<ID>.<LANDSCAPE_APPS_DOMAIN>/v1/sayHello` - GET request that provides XSUAA user token details, but only if token matches.
5858
* `https://spring-security-xsuaa-usage-web-<ID>.<LANDSCAPE_APPS_DOMAIN>/v1/method` - GET request executes a method secured with Spring Global Method Security.
59-
* `https://spring-security-xsuaa-usage-web-<ID>.<LANDSCAPE_APPS_DOMAIN>/v1/readData` - GET request to read sensitive data via Global Method Security.
59+
* `https://spring-security-xsuaa-usage-web-<ID>.<LANDSCAPE_APPS_DOMAIN>/v1/getAdminData` - GET request to read sensitive data via Global Method Security. You will get a `403` (UNAUTHORIZED), in case you do not have `Admin` scope.
6060
* `https://spring-security-xsuaa-usage-web-<ID>.<LANDSCAPE_APPS_DOMAIN>/v2/sayHello` - GET request that logs generic Jwt info, but only if token matches.
6161

6262
Have a look into the logs with:
@@ -65,3 +65,12 @@ cf logs spring-security-xsuaa-usage --recent
6565
``
6666
6767
> Note: https://spring-security-xsuaa-usage-web-<ID>.<LANDSCAPE_APPS_DOMAIN> points to the url of the AppRouter. Get all app routes with `cf apps`.
68+
69+
## Clean-Up
70+
71+
Finally delete your application and your service instances using the following commands:
72+
```
73+
cf delete -f spring-security-xsuaa-usage
74+
cf delete -f approuter-spring-security-xsuaa-usage
75+
cf delete-service -f xsuaa-authentication
76+
```

samples/spring-security-xsuaa-usage/src/main/java/sample/spring/xsuaa/TestController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public String callMethodRemotely() {
9595
*
9696
* @see {@link DataService}.
9797
*/
98-
@GetMapping(value = "/v1/readData")
98+
@GetMapping(value = "/v1/getAdminData")
9999
public String readFromDataService() {
100100
return dataService.readSensitiveData();
101101
}

0 commit comments

Comments
 (0)