1
0
mirror of https://github.com/sasjs/adapter.git synced 2025-12-11 01:14:36 +00:00

fix: CAS Authentication upon SAS9 login

This commit is contained in:
Saad Jutt
2021-06-17 19:33:58 +05:00
parent cdc0c12ec4
commit f4cdd2d607
2 changed files with 9 additions and 5 deletions

View File

@@ -61,6 +61,15 @@ export class AuthManager {
}
if (loggedIn) {
if (this.serverType === ServerType.Sas9) {
const casAuthenticationUrl = `${this.serverUrl}/SASStoredProcess/j_spring_cas_security_check`
await this.requestClient.get<string>(
`/SASLogon/login?service=${casAuthenticationUrl}`,
undefined
)
}
this.loginCallback()
}

View File

@@ -110,11 +110,6 @@ export class WebJobExecutor extends BaseJobExecutor {
if (e instanceof LoginRequiredError) {
await loginCallback()
if (config.serverType === ServerType.Sas9 && data)
this.appendWaitingRequest(() =>
this.execute(sasJob, data, config)
)
this.appendWaitingRequest(() => {
return this.execute(
sasJob,