Skip to content

Commit

Permalink
Update README.MD
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4mpy authored Oct 15, 2024
1 parent f761abc commit 4e59cad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Reduce Java Security conf to 0 in scenarios like:

### [`spring-addons-starter-rest`](https://github.com/ch4mpy/spring-addons/tree/master/spring-addons-starter-rest)

Configure declarative REST clients with `Bearer` or `Basic` authorization, and HTTP proxy settings with just properties. For OAuth2 authorization, we have a choice of using a new token using any Spring `registration`, or to re-use the access token in the security context of a resource server.
Configure declarative REST clients with `Bearer` or `Basic` authorization, and HTTP proxy settings with just properties. For OAuth2 authorization, we have a choice of using a new token using any Spring OAuth2 client `registration`, or to re-use the access token in the security context of an `oauth2ResourceServer`.

For instance, to get an implementation for the following `@HttpExchange` with OAuth2 authorization:
```java
Expand All @@ -54,7 +54,7 @@ public interface KeycloakAdminApi {
Long getTotalUsersCount(@PathVariable(name = "realm") String realm);
}
```
This can be enough (see [the README](https://github.com/ch4mpy/spring-addons/tree/master/spring-addons-starter-rest) for a sample with a `registration` using `client_credentials`):
This can be enough (see [the README](https://github.com/ch4mpy/spring-addons/tree/master/spring-addons-starter-rest) for a sample with an OAuth2 client `registration` using `client_credentials`):
```java
@Bean
KeycloakAdminApi keycloakAdminApi(SpringAddonsRestClientSupport restSupport) {
Expand Down

0 comments on commit 4e59cad

Please sign in to comment.