External login with redirect logged in

I need urgent help.
I have an external site that needs to log in to my app and open the already logged index.
In this image I put the user and password of my app.
I can retrieve the user’s access_token.
I need to redirect to my main app and open this index with login.


How can I do this.

Thank you.