You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by mm...@apache.org on 2021/03/08 15:51:09 UTC
[syncope] 01/01: fix checkstyle
This is an automated email from the ASF dual-hosted git repository.
mmoayyed pushed a commit to branch cas64rc2
in repository https://gitbox.apache.org/repos/asf/syncope.git
commit 1353c300d3d7f73434015c772c4cf8c86dc77eb7
Author: Misagh <mm...@gmail.com>
AuthorDate: Mon Mar 8 19:50:48 2021 +0400
fix checkstyle
---
.../src/main/java/org/apache/syncope/core/logic/SAML2SP4UILogic.java | 3 ++-
.../apache/syncope/wa/bootstrap/SyncopeWAPropertySourceLocator.java | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ext/saml2sp4ui/logic/src/main/java/org/apache/syncope/core/logic/SAML2SP4UILogic.java b/ext/saml2sp4ui/logic/src/main/java/org/apache/syncope/core/logic/SAML2SP4UILogic.java
index ebd0a18..dcb50c6 100644
--- a/ext/saml2sp4ui/logic/src/main/java/org/apache/syncope/core/logic/SAML2SP4UILogic.java
+++ b/ext/saml2sp4ui/logic/src/main/java/org/apache/syncope/core/logic/SAML2SP4UILogic.java
@@ -303,7 +303,8 @@ public class SAML2SP4UILogic extends AbstractTransactionalLogic<EntityTO> {
saml2Client.getConfiguration().getAuthnRequestBindingType(),
saml2Response);
- credentials = (SAML2Credentials) saml2Client.getCredentialsExtractor().extract(ctx, NoOpSessionStore.INSTANCE).
+ credentials = (SAML2Credentials) saml2Client.getCredentialsExtractor().
+ extract(ctx, NoOpSessionStore.INSTANCE).
orElseThrow(() -> new IllegalStateException("No AuthnResponse found"));
saml2Client.getAuthenticator().validate(credentials, ctx, NoOpSessionStore.INSTANCE);
diff --git a/wa/bootstrap/src/main/java/org/apache/syncope/wa/bootstrap/SyncopeWAPropertySourceLocator.java b/wa/bootstrap/src/main/java/org/apache/syncope/wa/bootstrap/SyncopeWAPropertySourceLocator.java
index 6fb9bc3..3a2b117 100644
--- a/wa/bootstrap/src/main/java/org/apache/syncope/wa/bootstrap/SyncopeWAPropertySourceLocator.java
+++ b/wa/bootstrap/src/main/java/org/apache/syncope/wa/bootstrap/SyncopeWAPropertySourceLocator.java
@@ -206,7 +206,8 @@ public class SyncopeWAPropertySourceLocator implements PropertySourceLocator {
final String authModule,
final GoogleMfaAuthModuleConf conf) {
- GoogleAuthenticatorMultifactorAuthenticationProperties props = new GoogleAuthenticatorMultifactorAuthenticationProperties();
+ GoogleAuthenticatorMultifactorAuthenticationProperties props =
+ new GoogleAuthenticatorMultifactorAuthenticationProperties();
props.setName(authModule);
props.setIssuer(conf.getIssuer());
props.setCodeDigits(conf.getCodeDigits());