Skip to content

Commit

Permalink
fix(federation)!: Deprecate Enviroment federation info in favor of au…
Browse files Browse the repository at this point in the history
…thenticator

Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Feb 14, 2024
1 parent 4537bd7 commit 3192954
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions lib/Controller/AEnvironmentAwareController.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,13 @@ abstract class AEnvironmentAwareController extends OCSController {
protected int $apiVersion = 1;
protected ?Room $room = null;
protected ?Participant $participant = null;
/**
* @deprecated
*/
protected ?string $federationCloudId = null;
/**
* @deprecated
*/
protected ?string $federationAccessToken = null;

public function setAPIVersion(int $apiVersion): void {
Expand All @@ -63,15 +69,24 @@ public function getParticipant(): ?Participant {
return $this->participant;
}

/**
* @deprecated
*/
public function setRemoteAccess(?string $actorId, ?string $accessToken): void {
$this->federationCloudId = $actorId;
$this->federationAccessToken = $accessToken;
}

/**
* @deprecated
*/
public function getRemoteAccessCloudId(): ?string {
return $this->federationCloudId;
}

/**
* @deprecated
*/
public function getRemoteAccessToken(): ?string {
return $this->federationAccessToken;
}
Expand Down

0 comments on commit 3192954

Please sign in to comment.