Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Finish deprecation of all U2F-specific classes #36

Open
wants to merge 21 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Next Next commit
Deprecate RegisterRequest & SignRequest
  • Loading branch information
Firehed committed Oct 27, 2021
commit 6906d77222730fb658600de63b0fa6d156be60a1
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Server::setRegisterRequest(RegisterRequest)
- Server::setRegistrations(RegistrationInterface[])
- Server::setSignRequests(SignRequest[])
- Server::generateRegisterRequest()
- Server::generateSignRequest(RegistrationInterface)
- Server::generateSignRequests(RegistrationInterface[])
- RegisterRequest
- SignRequest


## [1.2.0] - 2021-10-26
Expand Down
3 changes: 3 additions & 0 deletions src/RegisterRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use JsonSerializable;

/**
* @deprecated
*/
class RegisterRequest implements JsonSerializable, ChallengeProvider
{
use AppIdTrait;
Expand Down
6 changes: 6 additions & 0 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,8 @@ public function setSignRequests(array $signRequests): self
* Creates a new RegisterRequest to be sent to the authenticated user to be
* used by the `u2f.register` API.
*
* @deprecated
*
* @return RegisterRequest
*/
public function generateRegisterRequest(): RegisterRequest
Expand All @@ -381,6 +383,8 @@ public function generateRegisterRequest(): RegisterRequest
* Creates a new SignRequest for an existing registration for an
* authenticating user, used by the `u2f.sign` API.
*
* @deprecated
*
* @param RegistrationInterface $reg one of the user's existing Registrations
* @return SignRequest
*/
Expand All @@ -397,6 +401,8 @@ public function generateSignRequest(RegistrationInterface $reg): SignRequest
* ensures that all sign requests share a single challenge, which greatly
* simplifies compatibility with WebAuthn
*
* @deprecated
*
* @param RegistrationInterface[] $registrations
* @return SignRequest[]
*/
Expand Down
3 changes: 3 additions & 0 deletions src/SignRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

use JsonSerializable;

/**
* @deprecated
*/
class SignRequest implements JsonSerializable, ChallengeProvider, KeyHandleInterface
{
use AppIdTrait;
Expand Down