auth: rename issuedBy to actor

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2025-04-09 15:58:20 +02:00
parent dcc5f2b3cc
commit 7a88f85f2f
6 changed files with 16 additions and 17 deletions
@@ -596,7 +596,7 @@ describe('createRouter', () => {
expect(mockApplyConditions).toHaveBeenCalledWith(
'plugin-1',
mockCredentials.user('user:default/spiderman', {
issuedBySubject: 'some-service',
actor: 'some-service',
}),
[
expect.objectContaining({
@@ -611,7 +611,7 @@ describe('createRouter', () => {
expect(mockApplyConditions).toHaveBeenCalledWith(
'plugin-2',
mockCredentials.user('user:default/spiderman', {
issuedBySubject: 'some-service',
actor: 'some-service',
}),
[
expect.objectContaining({
@@ -729,7 +729,7 @@ describe('createRouter', () => {
function userTokenIssuedByService() {
return mockCredentials.user.token('user:default/spiderman', {
issuedBySubject: 'some-service',
actor: 'some-service',
});
}
});