-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from Onlineberatung/OB-4625-fix-cve
Ob 4625 fix CVE
- Loading branch information
Showing
18 changed files
with
100 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM quay.io/keycloak/keycloak:20.0.0 | ||
FROM quay.io/keycloak/keycloak:22.0.3 | ||
COPY keycloak-otp-config-spi-1.0-SNAPSHOT-keycloak.jar /opt/keycloak/providers/keycloak-otp-config-spi-1.0-SNAPSHOT-keycloak.jar | ||
|
||
ENTRYPOINT /opt/keycloak/bin/kc.sh start --auto-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,10 +230,10 @@ public void setupOtpMail_should_be_created_and_delete_app_if_2fa_via_app_is_alre | |
var otp = new Otp("1223", 1L, 2L, "[email protected]", 0); | ||
var credentialModel = MailOtpCredentialModel.createOtpModel(otp, Clock.systemDefaultZone()); | ||
when(otpService.validate("1223", otp)).thenReturn( | ||
ValidationResult.VALID); | ||
ValidationResult.VALID); | ||
when(mailCredentialService.getCredential(credentialContext)).thenReturn(credentialModel); | ||
when(mailCredentialService.createCredential(otp, credentialContext)).thenReturn( | ||
credentialModel); | ||
credentialModel); | ||
|
||
var response = resourceProvider.setupOtpMail("heinrich", mailSetup); | ||
|
||
|
@@ -259,7 +259,7 @@ public void getOtpSetupInfo_should_return_type_app_if_app_2fa_is_configured() { | |
public void getOtpSetupInfo_should_return_type_mail_if_mail_2fa_is_configured() { | ||
when(appCredentialService.generateSecret()).thenReturn("someSecret"); | ||
when(appCredentialService.generateQRCodeBase64("someSecret", credentialContext)).thenReturn( | ||
"base64EncodedQRCode"); | ||
"base64EncodedQRCode"); | ||
when(mailCredentialService.is2FAConfigured(credentialContext)).thenReturn(true); | ||
|
||
var response = resourceProvider.getOtpSetupInfo("heinrich"); | ||
|
@@ -296,9 +296,9 @@ public void setupOtp_should_be_created_and_delete_mail_otp_if_mail_otp_is_alread | |
otpSetup.setInitialCode("4711"); | ||
var credentialModel = mock(OTPCredentialModel.class); | ||
when(appCredentialService.createModel("secretSecret", credentialContext)).thenReturn( | ||
credentialModel); | ||
credentialModel); | ||
when((appCredentialService.validate("4711", credentialModel, credentialContext))).thenReturn( | ||
true); | ||
true); | ||
|
||
var response = resourceProvider.setupOtp("heinrich", otpSetup); | ||
|
||
|
Oops, something went wrong.