diff --git a/auth/src/main/java/org/openedx/auth/data/api/AuthApi.kt b/auth/src/main/java/org/openedx/auth/data/api/AuthApi.kt index 4ecc3fa5d..0edf8f6c8 100644 --- a/auth/src/main/java/org/openedx/auth/data/api/AuthApi.kt +++ b/auth/src/main/java/org/openedx/auth/data/api/AuthApi.kt @@ -38,7 +38,9 @@ interface AuthApi { @Field("grant_type") grantType: String, @Field("client_id") clientId: String, @Field("code") code: String, - @Field("redirect_uri") redirectUri: String + @Field("redirect_uri") redirectUri: String, + @Field("token_type") tokenType: String, + @Field("asymmetric_jwt") isAsymmetricJwt: Boolean = true, ): AuthResponse @FormUrlEncoded diff --git a/auth/src/main/java/org/openedx/auth/data/repository/AuthRepository.kt b/auth/src/main/java/org/openedx/auth/data/repository/AuthRepository.kt index ddf1b69d0..14ff63773 100644 --- a/auth/src/main/java/org/openedx/auth/data/repository/AuthRepository.kt +++ b/auth/src/main/java/org/openedx/auth/data/repository/AuthRepository.kt @@ -48,7 +48,8 @@ class AuthRepository( grantType = ApiConstants.GRANT_TYPE_CODE, clientId = config.getOAuthClientId(), code = code, - redirectUri = "${config.getApplicationID()}://oauth2Callback" + redirectUri = "${config.getApplicationID()}://oauth2Callback", + tokenType = config.getAccessTokenType(), ).mapToDomain().processAuthResponse() }