Skip to content

Commit 255b19d

Browse files
author
Jochen Damzog
committed
Adding user resource for v3
Adding GrantType value for jwt-bearer grant type Adding GrantType value for saml2-bearer grant type Adding GrantType value for user token grant type
1 parent 63f9831 commit 255b19d

File tree

1 file changed

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

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,14 @@ public enum GrantType {
5555
JWT_BEARER("urn:ietf:params:oauth:grant-type:jwt-bearer"),
5656

5757
/**
58-
* The jwt-bearer token grant type
58+
* The saml2-bearer token grant type
59+
*/
60+
SAML2_BEARER("urn:ietf:params:oauth:grant-type:saml2-bearer"),
61+
62+
/**
63+
* The user token token grant type
5964
*/
60-
SAML2_BEARER("urn:ietf:params:oauth:grant-type:saml2-bearer");
65+
USER_TOKEN("user_token");
6166

6267
private final String value;
6368

@@ -82,6 +87,8 @@ public static GrantType from(String s) {
8287
return JWT_BEARER;
8388
case "urn:ietf:params:oauth:grant-type:saml2-bearer":
8489
return SAML2_BEARER;
90+
case "user_token":
91+
return USER_TOKEN;
8592
default:
8693
throw new IllegalArgumentException(String.format("Unknown grant type: %s", s));
8794
}

0 commit comments

Comments
 (0)