OC-1029: add an extra condition to check of redirection. Check if LocationUrl contains SAML or wayf

This commit is contained in:
masensio 2013-08-21 17:53:12 +02:00
parent 68de068092
commit 10f832498d

View file

@ -313,7 +313,9 @@ public class RemoteOperationResult implements Serializable {
}
public boolean isTemporalRedirection() {
return (mHttpCode == 302 || mHttpCode == 307);
return (mHttpCode == 302 || mHttpCode == 307 ||
mRedirectedLocation.toUpperCase().contains("SAML") ||
mRedirectedLocation.toLowerCase().contains("wayf"));
}
public String getRedirectedLocation() {