mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-03 18:50:05 +00:00
Compare commits
1 Commits
viyaNewFil
...
issue-688
| Author | SHA1 | Date | |
|---|---|---|---|
| 435993e50e |
@@ -53,7 +53,9 @@ export const basicTests = (
|
|||||||
return await newAdapterIns.checkSession()
|
return await newAdapterIns.checkSession()
|
||||||
},
|
},
|
||||||
assertion: (response: any) =>
|
assertion: (response: any) =>
|
||||||
response?.isLoggedIn && response?.userName === userName
|
adapter.getSasjsConfig().serverType === ServerType.Sas9
|
||||||
|
? response?.isLoggedIn
|
||||||
|
: response?.isLoggedIn && response?.userName === userName
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'Multiple Log in attempts',
|
title: 'Multiple Log in attempts',
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ export class AuthManager {
|
|||||||
await this.performCASSecurityCheck()
|
await this.performCASSecurityCheck()
|
||||||
}
|
}
|
||||||
|
|
||||||
this.loginCallback()
|
await this.loginCallback()
|
||||||
this.userName = loginParams.username
|
this.userName = loginParams.username
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -16,7 +16,8 @@ import { SASViyaApiClient } from '../SASViyaApiClient'
|
|||||||
import {
|
import {
|
||||||
isRelativePath,
|
isRelativePath,
|
||||||
parseSasViyaDebugResponse,
|
parseSasViyaDebugResponse,
|
||||||
appendExtraResponseAttributes
|
appendExtraResponseAttributes,
|
||||||
|
getValidJson
|
||||||
} from '../utils'
|
} from '../utils'
|
||||||
import { BaseJobExecutor } from './JobExecutor'
|
import { BaseJobExecutor } from './JobExecutor'
|
||||||
import { parseWeboutResponse } from '../utils/parseWeboutResponse'
|
import { parseWeboutResponse } from '../utils/parseWeboutResponse'
|
||||||
@@ -183,6 +184,10 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof jsonResponse === 'string') {
|
||||||
|
jsonResponse = getValidJson(jsonResponse)
|
||||||
|
}
|
||||||
|
|
||||||
const responseObject = appendExtraResponseAttributes(
|
const responseObject = appendExtraResponseAttributes(
|
||||||
{ result: jsonResponse, log: res.log },
|
{ result: jsonResponse, log: res.log },
|
||||||
extraResponseAttributes
|
extraResponseAttributes
|
||||||
|
|||||||
Reference in New Issue
Block a user