Skip to content

Commit

Permalink
Merge pull request #2498 from Ludy87/code_refactoring
Browse files Browse the repository at this point in the history
Exclude Sensitive and Error-Prone Fields from toString() in SAML2 Con…
  • Loading branch information
Frooodle authored Dec 18, 2024
2 parents 74d6d96 + a531f53 commit 764b8f4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,18 +122,19 @@ public static class InitialLogin {

@Getter
@Setter
@ToString
public static class SAML2 {
private Boolean enabled = false;
private Boolean autoCreateUser = false;
private Boolean blockRegistration = false;
private String registrationId = "stirling";
private String idpMetadataUri;
@ToString.Exclude private String idpMetadataUri;
private String idpSingleLogoutUrl;
private String idpSingleLoginUrl;
private String idpIssuer;
private String idpCert;
private String privateKey;
private String spCert;
@ToString.Exclude private String privateKey;
@ToString.Exclude private String spCert;

public InputStream getIdpMetadataUri() throws IOException {
if (idpMetadataUri.startsWith("classpath:")) {
Expand Down

0 comments on commit 764b8f4

Please sign in to comment.