mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-15 16:10:06 +00:00
fix: CAS Authentication upon SAS9 login
This commit is contained in:
@@ -61,6 +61,15 @@ export class AuthManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (loggedIn) {
|
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()
|
this.loginCallback()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -110,11 +110,6 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|||||||
if (e instanceof LoginRequiredError) {
|
if (e instanceof LoginRequiredError) {
|
||||||
await loginCallback()
|
await loginCallback()
|
||||||
|
|
||||||
if (config.serverType === ServerType.Sas9 && data)
|
|
||||||
this.appendWaitingRequest(() =>
|
|
||||||
this.execute(sasJob, data, config)
|
|
||||||
)
|
|
||||||
|
|
||||||
this.appendWaitingRequest(() => {
|
this.appendWaitingRequest(() => {
|
||||||
return this.execute(
|
return this.execute(
|
||||||
sasJob,
|
sasJob,
|
||||||
|
|||||||
Reference in New Issue
Block a user