Skip to content

Commit 24ab3f9

Browse files
committed
Remove unused throttleMetadata
not used since 9b5d6c6
1 parent de4afa9 commit 24ab3f9

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

lib/Controller/LoginController.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,6 @@ public function backChannelLogout(string $providerIdentifier, string $logout_tok
863863
return $this->getBackchannelLogoutErrorResponse(
864864
'provider not found',
865865
'The provider was not found in Nextcloud',
866-
['provider_not_found' => $providerIdentifier]
867866
);
868867
}
869868

@@ -882,7 +881,6 @@ public function backChannelLogout(string $providerIdentifier, string $logout_tok
882881
return $this->getBackchannelLogoutErrorResponse(
883882
'invalid audience',
884883
'The audience of the logout token does not match the provider',
885-
['invalid_audience' => $logoutTokenPayload->aud]
886884
);
887885
}
888886

@@ -891,7 +889,6 @@ public function backChannelLogout(string $providerIdentifier, string $logout_tok
891889
return $this->getBackchannelLogoutErrorResponse(
892890
'invalid event',
893891
'The backchannel-logout event was not found in the logout token',
894-
['invalid_event' => true]
895892
);
896893
}
897894

@@ -900,15 +897,13 @@ public function backChannelLogout(string $providerIdentifier, string $logout_tok
900897
return $this->getBackchannelLogoutErrorResponse(
901898
'invalid nonce',
902899
'The logout token should not contain a nonce attribute',
903-
['nonce_should_not_be_set' => true]
904900
);
905901
}
906902

907903
if (!isset($logoutTokenPayload->iss)) {
908904
return $this->getBackchannelLogoutErrorResponse(
909905
'invalid iss',
910906
'The logout token should contain an iss attribute',
911-
['iss_should_be_set' => true]
912907
);
913908
}
914909
$iss = $logoutTokenPayload->iss;
@@ -917,7 +912,6 @@ public function backChannelLogout(string $providerIdentifier, string $logout_tok
917912
return $this->getBackchannelLogoutErrorResponse(
918913
'invalid sid+sub',
919914
'The logout token should contain sid or sub or both',
920-
['no_sid_no_sub' => true]
921915
);
922916
}
923917

@@ -979,7 +973,6 @@ public function backChannelLogout(string $providerIdentifier, string $logout_tok
979973
private function getBackchannelLogoutErrorResponse(
980974
string $error,
981975
string $description,
982-
array $throttleMetadata = [],
983976
): JSONResponse {
984977
$this->logger->debug('Backchannel logout error. ' . $error . ' ; ' . $description);
985978
return new JSONResponse(

0 commit comments

Comments
 (0)