Skip to content

Commit

Permalink
Auth token changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyaskhyati committed Sep 28, 2021
1 parent 6aa5561 commit 17d7f41
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ private void getAppControlObject(AppSecurityObjectResponse appSecurityObject) {
ServiceInterfaces.GetAppControlObjectEncrypted api = ApiClient.getClientAccount(this, "https://" +
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getScheme().get(0).getAuthority()).create(ServiceInterfaces.GetAppControlObjectEncrypted.class);

Call<EncryptedCMFResponse> call = api.getAppControlObject(
Call<EncryptedCMFResponse> call = api.getAppControlObject("Bearer "+ accessToken,
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getAPIVersion(),
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getEndPointID(),
Constants.CODE_GET_APP_CONTROL_REQUEST,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public interface GetAppControlObjectEncrypted {

@Headers("Content-Type:application/json")
@POST("/{Version}/{EndPointID}/management/"+ Constants.ServiceType.GET_APP_CONTROL)
Call<EncryptedCMFResponse> getAppControlObject(@Path("Version") String version,
Call<EncryptedCMFResponse> getAppControlObject(@Header("Authorization") String auth,
@Path("Version") String version,
@Path("EndPointID") String EndPointID,
@Query("code") String code,
@Body RequestBody requestBody);
Expand All @@ -81,7 +82,8 @@ public interface GetPrivacyObjectEncrypted {

@Headers("Content-Type:application/json")
@POST("/{Version}/{EndPointID}/management/"+ Constants.ServiceType.GET_PRIVACY_OBJECT)
Call<EncryptedCMFResponse> getPrivacyObject(@Path("Version") String version,
Call<EncryptedCMFResponse> getPrivacyObject(@Header("Authorization") String auth,
@Path("Version") String version,
@Path("EndPointID") String EndPointID,
@Body RequestBody requestBody);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@ public void getPrivacyObject(AppCompatActivity activity, String currentDate, Str
ServiceInterfaces.GetPrivacyObjectEncrypted api = ApiClient.getClientAccount(activity, "https://" +
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getScheme().get(0).getAuthority()).create(ServiceInterfaces.GetPrivacyObjectEncrypted.class);

Call<EncryptedCMFResponse> call = api.getPrivacyObject(pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getAPIVersion(),
Call<EncryptedCMFResponse> call = api.getPrivacyObject("Bearer "+ accessToken,
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getAPIVersion(),
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getEndPointID(),
ApiClient.makeJSONRequestBody(jsonObjectRequest));

Expand Down Expand Up @@ -753,7 +754,8 @@ public void getAppControlObject(AppCompatActivity activity, AppSecurityObjectRes
ServiceInterfaces.GetAppControlObjectEncrypted api = ApiClient.getClientAccount(activity,"https://" +
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getScheme().get(0).getAuthority()).create(ServiceInterfaces.GetAppControlObjectEncrypted.class);

Call<EncryptedCMFResponse> call = api.getAppControlObject(pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getAPIVersion(),
Call<EncryptedCMFResponse> call = api.getAppControlObject("Bearer "+ accessToken,
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getAPIVersion(),
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getEndPointID(),
Constants.CODE_GET_APP_CONTROL_REQUEST,
ApiClient.makeJSONRequestBody(jsonObjectRequest));
Expand Down Expand Up @@ -849,7 +851,8 @@ private void getAppControlObject(AppSecurityObjectResponse appSecurityObject,
ServiceInterfaces.GetAppControlObjectEncrypted api = ApiClient.getClientAccount(activity,"https://" +
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getScheme().get(0).getAuthority()).create(ServiceInterfaces.GetAppControlObjectEncrypted.class);

Call<EncryptedCMFResponse> call = api.getAppControlObject(pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getAPIVersion(),
Call<EncryptedCMFResponse> call = api.getAppControlObject("Bearer "+ accessToken,
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getAPIVersion(),
pHelper.getAppSecurityObject().getNICEASEndPoint().getNetEndPoint().getEndPointID(),
Constants.CODE_GET_APP_CONTROL_REQUEST,
ApiClient.makeJSONRequestBody(jsonObjectRequest));
Expand Down

0 comments on commit 17d7f41

Please sign in to comment.