|
|
@ -93,7 +93,7 @@ public class WSO2IAMSPApplicationService implements ISServiceProviderApplication
|
|
|
|
* @return constructed error message
|
|
|
|
* @return constructed error message
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
private String constructErrorMessage(HttpResponse response) {
|
|
|
|
private String constructErrorMessage(HttpResponse response) {
|
|
|
|
String msg = "Error occurred while calling SP Applications API";
|
|
|
|
String msg = "Error occurred while calling SP Applications API. Response status: " + response.getStatusLine().getStatusCode();
|
|
|
|
if (response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
|
|
|
|
if (response.getStatusLine().getStatusCode() == HttpStatus.SC_UNAUTHORIZED) {
|
|
|
|
msg += ". Make sure provided identity Server credentials are valid";
|
|
|
|
msg += ". Make sure provided identity Server credentials are valid";
|
|
|
|
}
|
|
|
|
}
|
|
|
|