Skip to content

Commit

Permalink
🐛 Logs "you do not have access" when you do
Browse files Browse the repository at this point in the history
Sometimes an unexpected error condition occurs and "You do not have
access to AWS through Okta." gets logged even though you do have the
AWS app assigned in Okta.

 - Log entire server response HTML if expected Okta error is missing

Related to oktadev#253
  • Loading branch information
AlainODea committed Dec 24, 2018
1 parent 99f1a88 commit 13bccfe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/okta/tools/saml/OktaSaml.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ private String getSamlResponseForAwsFromDocument(Document document) {
if (errorHeadline.hasText()) {
throw new RuntimeException(errorHeadline.text());
} else {
throw new RuntimeException("You do not have access to AWS through Okta. \nPlease contact your administrator.");
System.err.println(document.toString());
throw new RuntimeException("An unhandled error occurred. Please consult the server response above.");
}
}
}
Expand Down

0 comments on commit 13bccfe

Please sign in to comment.