Skip to content

Commit

Permalink
Merge branch 'release/4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
MKodde committed Apr 13, 2023
2 parents 3beed11 + 7f455c1 commit c4afc2e
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 16 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# Changelog

## 4.0.5
**Maintenance:**
- Framework: esi, fragments not used so disable
- Security upgrades are installed

**Bugfixes:**
- SMS prove possession route not found #288
- Repair return type inconsistency in recovery token trait #287

## 4.0.4
- Support self-vetting using a self-asserted token #284

Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions config/packages/framework.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
framework:
#esi: ~
esi: false
secret: "%secret%"
form: ~
csrf_protection: ~
Expand All @@ -13,5 +13,5 @@ framework:
name: sess_selfservice
cookie_httponly: true
cookie_secure: true
fragments: ~
fragments: false
http_method_override: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"ts-jest": "^27",
"ts-loader": "^9.0",
"typescript": "^4",
"webpack": "^5.75.0",
"webpack": "^5.76.0",
"webpack-cli": "^5.0.0",
"webpack-import-glob-loader": "^1.6.3"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ private function handleSmsChallenge(

if ($otpRequestsRemaining === 0) {
$this->addFlash('error', 'ss.prove_phone_possession.challenge_request_limit_reached');
return array_merge(['form' => $form->createView()], $viewVariables);
$parameters = array_merge(['form' => $form->createView()], $viewVariables);
return $this->render($templateName, $parameters);
}

if ($this->smsService->sendChallenge($command)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@ public function sendChallengeAction(Request $request)
$service = $this->get('surfnet_stepup_self_service_self_service.service.sms_second_factor');
$otpRequestsRemaining = $service->getOtpRequestsRemainingCount(SmsSecondFactorServiceInterface::REGISTRATION_SECOND_FACTOR_ID);
$maximumOtpRequests = $service->getMaximumOtpRequestsCount();
$viewVariables = ['otpRequestsRemaining' => $otpRequestsRemaining, 'maximumOtpRequests' => $maximumOtpRequests];
$viewVariables = [
'otpRequestsRemaining' => $otpRequestsRemaining,
'maximumOtpRequests' => $maximumOtpRequests,
'verifyEmail' => $this->emailVerificationIsRequired(),
];

if ($form->isSubmitted() && $form->isValid()) {
$command->identity = $identity->id;
Expand All @@ -67,7 +71,6 @@ public function sendChallengeAction(Request $request)
return array_merge(
[
'form' => $form->createView(),
'verifyEmail' => $this->emailVerificationIsRequired(),
],
$viewVariables
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ ss_registration_sms_send_challenge:
methods: [GET,POST]
defaults: { _controller: SurfnetStepupSelfServiceSelfServiceBundle:Registration/Sms:sendChallenge }

ss_registration_sms_prove_possession:
path: /registration/sms/prove-possession
methods: [GET,POST]
defaults: { _controller: SurfnetStepupSelfServiceSelfServiceBundle:Registration/Sms:provePossession }

ss_registration_gssf_status_report:
path: /registration/gssf/{provider}/status
methods: [GET]
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6587,10 +6587,10 @@ webpack-sources@^3.2.3:
resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde"
integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==

webpack@^5.75.0:
version "5.75.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.75.0.tgz#1e440468647b2505860e94c9ff3e44d5b582c152"
integrity sha512-piaIaoVJlqMsPtX/+3KTTO6jfvrSYgauFVdt8cr9LTHKmcq/AMd4mhzsiP7ZF/PGRNPGA8336jldh9l2Kt2ogQ==
webpack@^5.76.0:
version "5.76.0"
resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.76.0.tgz#f9fb9fb8c4a7dbdcd0d56a98e56b8a942ee2692c"
integrity sha512-l5sOdYBDunyf72HW8dF23rFtWq/7Zgvt/9ftMof71E/yUb1YLOBmTgA2K4vQthB3kotMrSj609txVE0dnr2fjA==
dependencies:
"@types/eslint-scope" "^3.7.3"
"@types/estree" "^0.0.51"
Expand Down

0 comments on commit c4afc2e

Please sign in to comment.