Skip to content

Commit c955f43

Browse files
author
Jochen Damzog
committed
Adding user resource for v3
Adding GrantType value for jwt-bearer grant type
1 parent 1175439 commit c955f43

File tree

2 files changed

+9
-2
lines changed
  • cloudfoundry-client/src/main/java/org/cloudfoundry/uaa/tokens
  • integration-test/src/test/java/org/cloudfoundry/client/v3

2 files changed

+9
-2
lines changed

cloudfoundry-client/src/main/java/org/cloudfoundry/uaa/tokens/GrantType.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,12 @@ public enum GrantType {
4747
/**
4848
* The refresh token grant type
4949
*/
50-
REFRESH_TOKEN("refresh_token");
50+
REFRESH_TOKEN("refresh_token"),
51+
52+
/**
53+
* The jwt-bearer token grant type
54+
*/
55+
JWT_BEARER("urn:ietf:params:oauth:grant-type:jwt-bearer");
5156

5257
private final String value;
5358

@@ -68,6 +73,8 @@ public static GrantType from(String s) {
6873
return PASSWORD;
6974
case "refresh_token":
7075
return REFRESH_TOKEN;
76+
case "urn:ietf:params:oauth:grant-type:jwt-bearer":
77+
return JWT_BEARER;
7178
default:
7279
throw new IllegalArgumentException(String.format("Unknown grant type: %s", s));
7380
}

integration-test/src/test/java/org/cloudfoundry/client/v3/UsersTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
public final class UsersTest extends AbstractIntegrationTest {
3636

3737
@Autowired
38-
private final CloudFoundryClient cloudFoundryClient;
38+
private CloudFoundryClient cloudFoundryClient;
3939

4040
private static Mono<CreateUserResponse> createUser(
4141
CloudFoundryClient cloudFoundryClient, String userId) {

0 commit comments

Comments
 (0)