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

Commit

Permalink
Deprecate RegisterRequest & SignRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Firehed committed Oct 27, 2021
1 parent bbe2e40 commit 6906d77
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
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

0 comments on commit 6906d77

Please sign in to comment.