Auth0 Home Blog Docs

redirectUri in checkSession?



we are trying to integrate Auth0 with other pre-existing system and we’d like to implement SSO as well.
The system needs to synchronize it’s internal session with the Auth0 session.
We’ve been thinking that maybe this code would try authenticate against auth0 and we would get a callback, so the legacy system could confirm the referrer being auth0 and validate the session.

const webAuth = new auth0.WebAuth({
		      domain: '',
		      audience: '',
		      scope: 'openid profile',
		      responseType: 'token id_token',
		      responseMode: 'redirectUri',
		      redirectUri: 'http://localhost:8080/legacySystem/auth0callback'

But, the “/legacySystem/auth0callback” endpoint does never get called.

Can we make checkSession to use the callback URL, or is there some other way to initialize a SSO from javascript and obtain a confirmation in backend?
Thank you