I have an issues with the OAuth authentication method in the browser. I would like to authenticate different users in the browser to use Asana API. I need to do this because I would like to create tasks in Asana and have the users as the authors of the tasks. I use the code from https://github.com/Asana/node-asana/blob/0847653c98660e6f3e07c1487224e3583723f8ca/examples/oauth/browser/public/redirect.html#L22-L44 but unfortunatelly when the new popup window opens there is an error unsupported_response_type: The supported response types are code, id_token, code id_token, and dentity.. The problem is with the response_type=tokenquery parameter in the URL caused by the line at https://github.com/Asana/node-asana/blob/0847653c98660e6f3e07c1487224e3583723f8ca/lib/auth/base_browser_flow.js#L76 I found an issue #144 here with some answer but requesting the user to authenticate every hour is not an option for the app I am developing. I wanted to ask if there is really no other way to get this working? I imagine it the same way as FB/Google/... flow works when I authenticate once and it persists for weeks and don't annoy the user every hour/day.
And if there is no workaround or fix for this I would maybe suggest to delete the obsolete examples and the code so people are not confused why it doesn't work.
Thanks in advance for the help and have a nice day 🙂
Hello there :)
I have an issues with the OAuth authentication method in the browser. I would like to authenticate different users in the browser to use Asana API. I need to do this because I would like to create tasks in Asana and have the users as the authors of the tasks. I use the code from https://github.com/Asana/node-asana/blob/0847653c98660e6f3e07c1487224e3583723f8ca/examples/oauth/browser/public/redirect.html#L22-L44 but unfortunatelly when the new popup window opens there is an error
unsupported_response_type: The supported response types are code, id_token, code id_token, and dentity.
. The problem is with theresponse_type=token
query parameter in the URL caused by the line at https://github.com/Asana/node-asana/blob/0847653c98660e6f3e07c1487224e3583723f8ca/lib/auth/base_browser_flow.js#L76 I found an issue #144 here with some answer but requesting the user to authenticate every hour is not an option for the app I am developing. I wanted to ask if there is really no other way to get this working? I imagine it the same way as FB/Google/... flow works when I authenticate once and it persists for weeks and don't annoy the user every hour/day.And if there is no workaround or fix for this I would maybe suggest to delete the obsolete examples and the code so people are not confused why it doesn't work.
Thanks in advance for the help and have a nice day 🙂
\cc @matthias-fi