Redash integration

What we got:
on one server: our app (ASP.NET MVC). with link to Redash
on another server: Redash

What we want?
Once the user login/logout to our app, he will automatically login/logout to Redash (with the same token as used in our app).

We thougt about using these requests:
http://:5000/logout
http:///login?token=123

but no good :frowning:

how can it be done?