Hi,
I have provider-hosted app which includes MVC project and SharePoint project that provisions app web. I need to generate an URL to redirect users to the pages in the app web, but I do not want to hardcode token parameters. How can I achieve it?
I've tried this way:
https://{HOST_WEB_URL}/_layouts/15/appredirect.aspx?redirect_uri={APP_WEB_PAGE_ENCODED_URL}&instance_id={CLIENT_ID}
...but it redirects to the Default.aspx, not to the page specified in the "redirect_uri" query parameter. Any ideas are welcome!
p.s. SharePoint is on-premises with high-trust configuration.