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:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user