When a user accepts my application request, the user is redirected to my app page with a parameter request_ids which is the request id info for that application request. The problem is that my app page has the [CanvasAuthorize] attribute that redirects the user to the permissions grant dialog and when user accepts it it returns the app entry point, but during this transfer i lose the request_ids querystring and cannot use the request id in my code.
How can I avoid this? What are the recommendations?
Thanks!
I overcome this by redirecting manually the ActionResult to an empty template with the following javascript autogen code:
This would give me back the access_code that I would later on exchange for the accesstoken and get a valid session.
HTH someone!