Skip to content

afterRefreshCheck infinitely called #265

@W1nstar

Description

@W1nstar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions