-
Notifications
You must be signed in to change notification settings - Fork 28
Description
We've been trying to set up a SSO driven JSDO project, but we can't past the fact it hangs on the afterRefreshCheck.
It can login no problem, any CRUD operation is working as expected, but after the token is expired out, the JSDO class tries to refresh it and enters an infinite loop.
We've tried to set this up by ourselves using the scarce documentation we could find on PASOE related SSO. We couldn't find any documentation at all on JSDO with SSO.
Any help would be welcome.
This is how we login on the system:
const auth = new progress.data.AuthenticationProviderSSO(serviceURI);
const options = {
serviceURI: serviceURI,
authenticationModel: progress.data.Session.AUTH_TYPE_SSO,
authProvider : auth
};
console.log(auth);
if (!auth._loggedIn) {
auth.login("walter","walter").then((e) => {
const jsdoSession = new progress.data.JSDOSession(options);
jsdoSession.addCatalog( [catalogURI, 'http://192.10.10.29:8810/web/web/catalog/jsdo/lineasInventarios']).then(data => {
console.log(data)
jsdo = new progress.data.JSDO({ name: 'paises' })
readRecords()
})
})
.catch((e)=> console.log(e));
} else {
const jsdoSession = new progress.data.JSDOSession(options);
jsdoSession.addCatalog( [catalogURI, 'http://192.10.10.29:8810/web/web/catalog/jsdo/lineas']).then(data => {
console.log(data)
jsdo = new progress.data.JSDO({ name: 'paises' })
readRecords()
})
}
After the token has expired, this is the callstack we're facing:
the callstack
this is how it starts
Like I said, we're doing this by ourselves so any help would be appreciated.
Thanks in advance, and apologies if this is common knowledge but we're just beign dumb.