File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
cloudfoundry-client/src/main/java/org/cloudfoundry/uaa/tokens Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments