Closed wucke13 closed 3 months ago
I didn't work on the OAuth part, so can't help you in depth here, but maybe this recent change of the frontend migration url has something to do with it.
Edit: after writing this I realised, that you are referring to the api endpoint, which afaik didn't change, so never mind.
Description
Description
The config contains the following statements on the
migration.todoist.redirecturl
:Now the information that can be deferred from it.
a. From statement 1. I can derive that this is the URL where clients are redirected to after they authorized in Todoist. Todoist calls this
OAuth redirect URL
(which precisely controls where Todoist redirects the user after they clickauthorize
). b. From statement 2. I can derive, that this must be equal to the URL that I register with, which Todoist calls theApp Service URL
(see first screenshot, this is the only URL asked during registration). c. Statement 3. tells me that this URL must somehow cause the (Vikunja?) frontend to request /migration/todoist/migrate
. So I would expect that there is some url, that when accessed, causes the frontend itself to make a request tomigration/todoist/migrate
. d. Statement 4. tells me, that this URL is expected to be/migrate/todoist
.From as per a. and b. we can derive that both
OAuth redirect URL
andApp Service URL
must have the same value, and as per d. we know that this value must be/migrate/todoist
. Now c. tells us that when accessing/migrate/todois
the frontend (?) will cause a request tomigration/todoist/migrate
. However, that is not happening, instead I land onhttps://vikunja.wucke13.de/migrate/todoist?code=<redacted>&state=<redacted>
showing meNot found
.Questions
/migration/todoist/migrate
if it is not relevant for the setting (as per statement 4.,/migrate/todoist
) is what the user needs to know.OAuth redirect URL
andApp Service URL
really both have to behttps://vikunja.example/migrate/todoist
?/
migration/todoist/migratethat triggers the import", and hence "one has to insert this URL as
OAuth redirect URL` in the Todoist App Settings?Relevant snippet from the sample config
https://github.com/go-vikunja/vikunja/blob/bf1c8c6119648184a3d55f5653f4f49618b20578/config.yml.sample#L230-L234
Vikunja Version
main/0.23.0 (Documentation that confuses me is on main branch, I run Vikunja 0.23.0)
Browser and version
No response
Can you reproduce the bug on the Vikunja demo site?
No
Screenshots
Workflow to failure