File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 3535public 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 ) {
You can’t perform that action at this time.
0 commit comments