Skip to content

Commit

Permalink
minor improvements on sample documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nenaraab committed Aug 2, 2019
1 parent 7758067 commit d571b42
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
2 changes: 1 addition & 1 deletion samples/sap-java-buildpack-api-usage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ If not you should get a `403` status code (Forbidden).

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

Finally delete your application and your service instances using the following commands:
```
Expand Down
2 changes: 1 addition & 1 deletion samples/spring-security-basic-auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ You will get a response like:
}
```

### Clean-Up
## Clean-Up

Finally delete your application and your service instances using the following commands:
```
Expand Down
11 changes: 10 additions & 1 deletion samples/spring-security-xsuaa-usage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ After deployment, the AppRouter will trigger authentication automatically when y

* `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.
* `https://spring-security-xsuaa-usage-web-<ID>.<LANDSCAPE_APPS_DOMAIN>/v1/method` - GET request executes a method secured with Spring Global Method Security.
* `https://spring-security-xsuaa-usage-web-<ID>.<LANDSCAPE_APPS_DOMAIN>/v1/readData` - GET request to read sensitive data via Global Method Security.
* `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.
* `https://spring-security-xsuaa-usage-web-<ID>.<LANDSCAPE_APPS_DOMAIN>/v2/sayHello` - GET request that logs generic Jwt info, but only if token matches.

Have a look into the logs with:
Expand All @@ -65,3 +65,12 @@ cf logs spring-security-xsuaa-usage --recent
``
> 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`.
## Clean-Up
Finally delete your application and your service instances using the following commands:
```
cf delete -f spring-security-xsuaa-usage
cf delete -f approuter-spring-security-xsuaa-usage
cf delete-service -f xsuaa-authentication
```
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public String callMethodRemotely() {
*
* @see {@link DataService}.
*/
@GetMapping(value = "/v1/readData")
@GetMapping(value = "/v1/getAdminData")
public String readFromDataService() {
return dataService.readSensitiveData();
}
Expand Down

0 comments on commit d571b42

Please sign in to comment.