Package org.tsugi.oauth2.objects
Class ClientAssertion
- java.lang.Object
-
- org.tsugi.jackson.objects.JacksonBase
-
- org.tsugi.lti13.objects.BaseJWT
-
- org.tsugi.oauth2.objects.ClientAssertion
-
public class ClientAssertion extends BaseJWT
The client_assertion part of a Client-Credentials Grant This JWT will be signed, compacted, and sent to the oauth_token_url as a POST request along with the following values grant_type=client_credentials client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer client_assertion=signed_client_assertion_jwt scope=blank separated list of scopes The audience originially was expected to be the token_url on these requests But D2L felt like there was supposed to be a separate audience value for these tokens in IMS that is part of the contract so we all added another column for it :) Later the IMS working group led by Backboard decided to eventually require the deployment_id on this - which I think is a great idea and should have been there all along but I still don't get why we need both an audience value and a deployment_id - but D2L is rarely wrong on these matters. https://tools.ietf.org/html/rfc6750 https://www.imsglobal.org/spec/security/v1p0#using-json-web-tokens-with-oauth-2-0-client-credentials-grant
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLIENT_ASSERTIONstatic StringCLIENT_ASSERTION_TYPEstatic StringCLIENT_ASSERTION_TYPE_JWTStringdeployment_idstatic StringGRANT_TYPEstatic StringGRANT_TYPE_CLIENT_CREDENTIALSstatic StringSCOPE
-
Constructor Summary
Constructors Constructor Description ClientAssertion()
-
Method Summary
-
Methods inherited from class org.tsugi.jackson.objects.JacksonBase
getAdditionalProperties, getKey, prettyPrint, prettyPrintLog, setAdditionalProperties, setKey
-
-
-
-
Field Detail
-
GRANT_TYPE
public static final String GRANT_TYPE
- See Also:
- Constant Field Values
-
GRANT_TYPE_CLIENT_CREDENTIALS
public static final String GRANT_TYPE_CLIENT_CREDENTIALS
- See Also:
- Constant Field Values
-
CLIENT_ASSERTION_TYPE
public static final String CLIENT_ASSERTION_TYPE
- See Also:
- Constant Field Values
-
CLIENT_ASSERTION_TYPE_JWT
public static final String CLIENT_ASSERTION_TYPE_JWT
- See Also:
- Constant Field Values
-
CLIENT_ASSERTION
public static final String CLIENT_ASSERTION
- See Also:
- Constant Field Values
-
SCOPE
public static final String SCOPE
- See Also:
- Constant Field Values
-
deployment_id
public String deployment_id
-
-