REST DEEPLINK Authentication

Hi, I am using REST Deeplink for integrations of apps. I have to ask authentication to the user. There are custom and username/password authentication options at the service. When I use username/password, browser/pop-up login form comes, and it caches the data. So, sign-out at the host app does not work well. At the documentation it says we can change the LoginRedirectLocation. When I use the custom Auth with my custom LoginRedirectLocation/Login page; after sign-in REST service not continues operations. The user is redirected to the User Home page. So, I need to show custom login page and continue REST. How can I do that?
1 answers

  This is the flow