We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b504a70 commit 8e52f99Copy full SHA for 8e52f99
1 file changed
src/main/java/com/onelogin/saml/Response.java
@@ -84,7 +84,15 @@ public void loadXmlFromBase64(String responseStr) throws Exception {
84
public boolean isValid(String... requestId){
85
try{
86
Calendar now = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
87
-
+
88
+ if(this.document == null){
89
+ throw new Exception("SAML Response is not loaded");
90
+ }
91
92
+ if(this.currentUrl == null || this.currentUrl.isEmpty()){
93
+ throw new Exception("The URL of the current host was not established");
94
95
96
rootElement = document.getDocumentElement();
97
rootElement.normalize();
98
0 commit comments