@@ -137,6 +137,10 @@ |
||
137 | 137 | ); |
138 | 138 | } |
139 | 139 | |
140 | + /** |
|
141 | + * @param string $secondFactorId |
|
142 | + * @param \Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\Identity $identity |
|
143 | + */ |
|
140 | 144 | private function provePossession($secondFactorId, $identity, $phoneNumber) |
141 | 145 | { |
142 | 146 | $command = new ProvePhonePossessionCommand(); |
@@ -136,6 +136,10 @@ |
||
136 | 136 | ); |
137 | 137 | } |
138 | 138 | |
139 | + /** |
|
140 | + * @param string $secondFactorId |
|
141 | + * @param \Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\Identity $identity |
|
142 | + */ |
|
139 | 143 | private function provePossession($secondFactorId, $identity, $phoneNumber) |
140 | 144 | { |
141 | 145 | $command = new ProveYubikeyPossessionCommand(); |
@@ -93,6 +93,10 @@ discard block |
||
93 | 93 | return true; |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param \Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\Identity $identity |
|
98 | + * @param string $secondFactorId |
|
99 | + */ |
|
96 | 100 | protected function vetSecondFactor($tokenType, $actorId, $identity, $secondFactorId, $verifiedSecondFactor, $phoneNumber) |
97 | 101 | { |
98 | 102 | $command = new VetSecondFactorCommand(); |
@@ -117,6 +121,9 @@ discard block |
||
117 | 121 | $this->enricher->setMetadata($metadata); |
118 | 122 | } |
119 | 123 | |
124 | + /** |
|
125 | + * @param \Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\Identity $identity |
|
126 | + */ |
|
120 | 127 | protected function verifyEmail($identity, $unverifiedSecondFactor) |
121 | 128 | { |
122 | 129 | $command = new VerifyEmailCommand(); |
@@ -143,6 +143,10 @@ |
||
143 | 143 | ); |
144 | 144 | } |
145 | 145 | |
146 | + /** |
|
147 | + * @param string $secondFactorId |
|
148 | + * @param \Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\Identity $identity |
|
149 | + */ |
|
146 | 150 | private function provePossession($secondFactorId, $identity, $tokenType, $tokenIdentifier) |
147 | 151 | { |
148 | 152 | $command = new ProveGssfPossessionCommand(); |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
81 | - * @param $identityId |
|
81 | + * @param string $identityId |
|
82 | 82 | * @param $tokenType |
83 | 83 | * @return UnverifiedSecondFactor|null |
84 | 84 | */ |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |
93 | - * @param $identityId |
|
93 | + * @param string $identityId |
|
94 | 94 | * @param $tokenType |
95 | 95 | * @return VerifiedSecondFactor|null |
96 | 96 | */ |