1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-17 17:10:05 +00:00

Merge pull request #787 from sasjs/issue-786

fix: removing .do from loginUrl mechanism
This commit is contained in:
Allan Bowe
2023-02-21 18:56:12 +00:00
committed by GitHub

View File

@@ -239,7 +239,7 @@ export class AuthManager {
} }
const { result: formResponse } = await this.requestClient.get<string>( const { result: formResponse } = await this.requestClient.get<string>(
this.loginUrl.replace('.do', ''), this.loginUrl.replace('/SASLogon/login.do', '/SASLogon/login'),
undefined, undefined,
'text/plain' 'text/plain'
) )
@@ -348,7 +348,7 @@ export class AuthManager {
this.loginUrl = this.loginUrl =
this.serverType === ServerType.SasViya this.serverType === ServerType.SasViya
? tempLoginLink ? tempLoginLink
: loginUrl.replace('.do', '') : loginUrl.replace('/SASLogon/login.do', '/SASLogon/login')
} }
} }