diff --git a/__tests__/src/components/IIIFAuthentication.test.js b/__tests__/src/components/IIIFAuthentication.test.js index c43d762cfe973be06165903c5b2472dad96d069c..cbf6a80230363383c7a3a4d91d54b5a89909018e 100644 --- a/__tests__/src/components/IIIFAuthentication.test.js +++ b/__tests__/src/components/IIIFAuthentication.test.js @@ -86,7 +86,7 @@ describe('IIIFAuthentication', () => { wrapper.find(WindowAuthenticationBar).simulate('confirm'); - expect(openWindow).toHaveBeenCalledWith('http://example.com/logout', 'centerscreen'); + expect(openWindow).toHaveBeenCalledWith('http://example.com/logout', undefined, 'centerscreen'); expect(resetAuthenticationState).toHaveBeenCalledWith({ authServiceId: 'http://example.com/auth', tokenServiceId: 'http://example.com/token', }); diff --git a/src/components/IIIFAuthentication.js b/src/components/IIIFAuthentication.js index 098b6ca4a32a179879258e4968d1679df80a7633..b3ed603f2878c1b4cb48f1427b496bf9211cc443 100644 --- a/src/components/IIIFAuthentication.js +++ b/src/components/IIIFAuthentication.js @@ -45,7 +45,7 @@ export class IIIFAuthentication extends Component { accessTokenServiceId, authServiceId, features, logoutServiceId, resetAuthenticationState, openWindow, } = this.props; - openWindow(logoutServiceId, features); + openWindow(logoutServiceId, undefined, features); resetAuthenticationState({ authServiceId, tokenServiceId: accessTokenServiceId }); }