-
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.
The previous solution where the RegistrationEmailProcessor would send the registration mail messages was decomissioned. As this would also send reg mail messages for other vetting types (self asserted, self vetting). Now, the SS SP will trigger a SendSecondFactorRegistrationEmailCommand via the middleware client bundle. And that command is now sending the mail message via the existing RegistrationMailService. Some of the control logic that was in the processor mas moved to the mail service. See: OpenConext/Stepup-SelfService#276
- Loading branch information
Showing
12 changed files
with
255 additions
and
430 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
51 changes: 51 additions & 0 deletions
51
...eware/CommandHandlingBundle/Identity/Command/SendSecondFactorRegistrationEmailCommand.php
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
/** | ||
* Copyright 2022 SURFnet bv | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
namespace Surfnet\StepupMiddleware\CommandHandlingBundle\Identity\Command; | ||
|
||
use Surfnet\StepupMiddleware\CommandHandlingBundle\Command\AbstractCommand; | ||
use Surfnet\StepupMiddleware\CommandHandlingBundle\Command\SelfServiceExecutable; | ||
use Symfony\Component\Validator\Constraints as Assert; | ||
|
||
class SendSecondFactorRegistrationEmailCommand extends AbstractCommand implements SelfServiceExecutable | ||
{ | ||
/** | ||
* The ID of an identity. | ||
* | ||
* @Assert\NotBlank() | ||
* @Assert\Type(type="string") | ||
* | ||
* @var string | ||
*/ | ||
public $identityId; | ||
|
||
/** | ||
* The ID of a second factor token | ||
* | ||
* @Assert\NotBlank() | ||
* @Assert\Type(type="string") | ||
* | ||
* @var string | ||
*/ | ||
public $secondFactorId; | ||
|
||
public function getIdentityId() | ||
{ | ||
return $this->identityId; | ||
} | ||
} |
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
Oops, something went wrong.