1 | <?php |
||
11 | class SecondFactorVerificationService |
||
12 | { |
||
13 | /** @var SamlAuthenticationLogger */ |
||
14 | private $samlLogger; |
||
15 | |||
16 | /** @var ResponseContext */ |
||
17 | private $responseContext; |
||
18 | |||
19 | /** |
||
20 | * SecondFactorVerificationService constructor. |
||
21 | * @param SamlAuthenticationLogger $samlLogger |
||
22 | * @param ResponseContext $responseContext |
||
23 | */ |
||
24 | public function __construct(SamlAuthenticationLogger $samlLogger, ResponseContext $responseContext) |
||
29 | |||
30 | /** |
||
31 | * Proxy a GSSP authentication request for use in the remote GSSP SSO endpoint. |
||
32 | * |
||
33 | * The user is about to be sent to the remote GSSP application for |
||
34 | * registration. Verification is not initiated with a SAML AUthnRequest, |
||
35 | * |
||
36 | * The service provider in this context is SelfService (when registering |
||
37 | * a token) or RA (when vetting a token). |
||
38 | * |
||
39 | * @param Provider $provider |
||
40 | * @param string $subjectNameId |
||
41 | * @return AuthnRequest |
||
42 | */ |
||
43 | public function sendSecondFactorVerificationAuthnRequest(Provider $provider, $subjectNameId) |
||
73 | } |
||
74 |