File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 2222class Base64Utility
2323{
2424 /**
25- * @param string $data
25+ * @param string $data The data to encode
2626 * @return string
2727 */
2828 public static function complyEncodedNoPadding (string $ data ): string
Original file line number Diff line number Diff line change 1919use Cake \Utility \Hash ;
2020use CakeDC \Api \Utility \RequestParser ;
2121use CakeDC \Api \Webauthn \Repository \UserCredentialSourceRepository ;
22+ use CakeDC \Users \Model \Table \UsersTable ;
2223use Cose \Algorithm \Manager ;
2324use Cose \Algorithm \Signature \ECDSA \ES256 ;
2425use Cose \Algorithm \Signature \ECDSA \ES256K ;
3637use Webauthn \AttestationStatement \AttestationStatementSupportManager ;
3738use Webauthn \AttestationStatement \NoneAttestationStatementSupport ;
3839use Webauthn \AuthenticationExtensions \ExtensionOutputCheckerHandler ;
39- use CakeDC \Users \Model \Table \UsersTable ;
4040use Webauthn \PublicKeyCredentialRpEntity ;
4141use Webauthn \PublicKeyCredentialUserEntity ;
4242
@@ -252,7 +252,8 @@ public function getDomain($replace = true)
252252 }
253253
254254 /**
255- * @param \Webauthn\AttestationStatement\AttestationStatementSupportManager $attestationStatementSupportManager
255+ * @param \Webauthn\AttestationStatement\AttestationStatementSupportManager $attestationStatementSupportManager manager instance
256+ * @return void
256257 */
257258 public function setAttestationStatementSupportManager (
258259 AttestationStatementSupportManager $ attestationStatementSupportManager
@@ -275,7 +276,7 @@ protected function getAttestationStatementSupportManager(): AttestationStatement
275276 }
276277
277278 /**
278- * @return \CakeDC\Users \Webauthn\PublicKeyCredentialLoader
279+ * @return \CakeDC\Api \Webauthn\PublicKeyCredentialLoader
279280 */
280281 protected function createPublicKeyCredentialLoader (): PublicKeyCredentialLoader
281282 {
Original file line number Diff line number Diff line change 2121use Webauthn \PublicKeyCredentialCreationOptions ;
2222use Webauthn \PublicKeyCredentialDescriptor ;
2323use Webauthn \PublicKeyCredentialParameters ;
24+ use Webauthn \PublicKeyCredentialSource ;
2425
2526class RegisterAdapter extends BaseAdapter
2627{
@@ -71,7 +72,7 @@ protected function getPubKeyCredParams(): array
7172 *
7273 * @return \Webauthn\PublicKeyCredentialSource
7374 */
74- public function verifyResponse (): \ Webauthn \ PublicKeyCredentialSource
75+ public function verifyResponse (): PublicKeyCredentialSource
7576 {
7677 $ storeEntity = $ this ->readStore ();
7778 $ options = $ this ->getStore ($ storeEntity , 'registerOptions ' );
Original file line number Diff line number Diff line change @@ -60,12 +60,10 @@ public function findOneByCredentialId(string $publicKeyCredentialId): ?PublicKey
6060 */
6161 public function findAllForUserEntity (PublicKeyCredentialUserEntity $ publicKeyCredentialUserEntity ): array
6262 {
63- if ($ publicKeyCredentialUserEntity ->getId () != $ this ->user ->id ) {
63+ if ($ publicKeyCredentialUserEntity ->getId () != $ this ->user ->get ( ' id ' ) ) {
6464 return [];
6565 }
66- \Cake \Log \Log::error (print_r ($ this ->user , true ));
6766 $ credentials = $ this ->getUserData ($ this ->user );
68- \Cake \Log \Log::error (print_r ($ credentials , true ));
6967
7068 $ list = [];
7169 foreach ($ credentials as $ credential ) {
You can’t perform that action at this time.
0 commit comments