Skip to content

Commit 63f9831

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
1 parent c955f43 commit 63f9831

File tree

1 file changed

+8
-1
lines changed
  • cloudfoundry-client/src/main/java/org/cloudfoundry/uaa/tokens

1 file changed

+8
-1
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
@@ -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
}

0 commit comments

Comments
 (0)