diff --git a/__tests__/src/sagas/auth.test.js b/__tests__/src/sagas/auth.test.js index 229e9956e3a166de4ab843e322029fb1a05b4e12..66182bf5fff61db39d7a8c8b5e397f0ee1ea09d3 100644 --- a/__tests__/src/sagas/auth.test.js +++ b/__tests__/src/sagas/auth.test.js @@ -369,23 +369,5 @@ describe('IIIF Authentication sagas', () => { }) .run(); }); - - it('marks the auth service as failed if the auth token was not successfully used', () => { - const authId = 'authId'; - const serviceId = 'serviceId'; - - return expectSaga(invalidateInvalidAuth, { serviceId }) - .provide([ - [select(getAccessTokens), { [serviceId]: { authId, id: serviceId } }], - [select(getAuth), { [authId]: { id: authId } }], - ]) - .put({ - id: authId, - ok: false, - tokenServiceId: serviceId, - type: ActionTypes.RESOLVE_AUTHENTICATION_REQUEST, - }) - .run(); - }); }); }); diff --git a/src/state/sagas/auth.js b/src/state/sagas/auth.js index 0ecb94976c362690ffd0360826eb934ce635e7b8..a17000a096043a24226d7b8fbbb2f6d06df8592d 100644 --- a/src/state/sagas/auth.js +++ b/src/state/sagas/auth.js @@ -139,14 +139,6 @@ export function* invalidateInvalidAuth({ serviceId }) { authServiceId: authService.id, tokenServiceId: accessTokenService.id, })); - } else { - // if the token never worked, mark the auth service as bad so we could - // try to pick a different service - yield put(resolveAuthenticationRequest( - authService.id, - accessTokenService.id, - { ok: false }, - )); } }