Logging out using special url

Hi,

I’m using @auth/auth0-angular 1.9.0.

To perform a full logout i have to construct a special url as i have to initiate logout using my main-tenant url.

How can i achieve this?

Thanks,
István

Hi @iherbak,

Welcome to the Auth0 Community!

Do you have an example of what you are referring to? You can see how logout is implemented in our quickstart here: Auth0 Angular SDK Quickstarts: Login.

I use the Auth0 configured according to the quickstart.
My tenant is a sub tenant, and have a connection to the main tenant (an AD is behind)

Domain: SUB_TENANT_DOMAIN
ClientId: Client_ID

But to log out correctly i required to construct an URL like

https://main_tenant_domain/v2/logout?returnTo=https://SUB_TENANT_DOMAIN/v2/logout?client_id=YOUR_CLIENT_ID&returnTo=LOGOUT_URL

where the returnTo param is URLEncoded, and the main tenant will terminate my session.

But with the sdk it is always using the configured SUB_TENANT_DOMAIN to call /v2/logout

Thanks in advance,
István