File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
cloudfoundry-client/src/main/java/org/cloudfoundry/uaa/tokens Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,12 @@ public enum GrantType {
5252 /**
5353 * The jwt-bearer token grant type
5454 */
55- JWT_BEARER ("urn:ietf:params:oauth:grant-type:jwt-bearer" );
55+ JWT_BEARER ("urn:ietf:params:oauth:grant-type:jwt-bearer" ),
56+
57+ /**
58+ * The jwt-bearer token grant type
59+ */
60+ SAML2_BEARER ("urn:ietf:params:oauth:grant-type:saml2-bearer" );
5661
5762 private final String value ;
5863
@@ -75,6 +80,8 @@ public static GrantType from(String s) {
7580 return REFRESH_TOKEN ;
7681 case "urn:ietf:params:oauth:grant-type:jwt-bearer" :
7782 return JWT_BEARER ;
83+ case "urn:ietf:params:oauth:grant-type:saml2-bearer" :
84+ return SAML2_BEARER ;
7885 default :
7986 throw new IllegalArgumentException (String .format ("Unknown grant type: %s" , s ));
8087 }
You can’t perform that action at this time.
0 commit comments