diff --git a/src/auth/AuthManager.ts b/src/auth/AuthManager.ts index 043c90b..ea9b9ba 100644 --- a/src/auth/AuthManager.ts +++ b/src/auth/AuthManager.ts @@ -13,7 +13,7 @@ export class AuthManager { public userLongName = '' private loginUrl: string private logoutUrl: string - private redirectedLoginUrl = `/SASLogon/home` + private redirectedLoginUrl = `/SASLogon` //SAS 9 M8 no longer redirects from `/SASLogon/home` to the login page. `/SASLogon` seems to be stable enough across SAS versions constructor( private serverUrl: string, private serverType: ServerType, diff --git a/src/auth/spec/AuthManager.spec.ts b/src/auth/spec/AuthManager.spec.ts index 46eb09e..1eb7392 100644 --- a/src/auth/spec/AuthManager.spec.ts +++ b/src/auth/spec/AuthManager.spec.ts @@ -365,7 +365,7 @@ describe('AuthManager', () => { expect(loginResponse.userName).toEqual(userName) expect(openWebPageModule.openWebPage).toHaveBeenCalledWith( - `/SASLogon/home`, + `/SASLogon`, 'SASLogon', { width: 500, @@ -409,7 +409,7 @@ describe('AuthManager', () => { expect(loginResponse.userName).toEqual(userName) expect(openWebPageModule.openWebPage).toHaveBeenCalledWith( - `/SASLogon/home`, + `/SASLogon`, 'SASLogon', { width: 500, @@ -453,7 +453,7 @@ describe('AuthManager', () => { expect(loginResponse.userName).toEqual('') expect(openWebPageModule.openWebPage).toHaveBeenCalledWith( - `/SASLogon/home`, + `/SASLogon`, 'SASLogon', { width: 500, @@ -497,7 +497,7 @@ describe('AuthManager', () => { expect(loginResponse.userName).toEqual('') expect(openWebPageModule.openWebPage).toHaveBeenCalledWith( - `/SASLogon/home`, + `/SASLogon`, 'SASLogon', { width: 500, diff --git a/src/auth/spec/verifySas9Login.spec.ts b/src/auth/spec/verifySas9Login.spec.ts index 78f84fc..c71f595 100644 --- a/src/auth/spec/verifySas9Login.spec.ts +++ b/src/auth/spec/verifySas9Login.spec.ts @@ -17,7 +17,7 @@ describe('verifySas9Login', () => { it('should return isLoggedIn true by checking state of popup', async () => { const popup = { window: { - location: { href: serverUrl + `/SASLogon/home` }, + location: { href: serverUrl + `/SASLogon` }, document: { body: { innerText: '