## Summary Sign in with Autodesk fails at the first redirect. The adapter still calls Autodesk's v1 authentication endpoints, which now return 404. ## Details - `src/Appwrite/Auth/OAuth2/Autodesk.php` uses: - `https://developer.api.autodesk.com/authentication/v1/authorize` - `https://developer.api.autodesk.com/authentication/v1/gettoken` - `https://developer.api.autodesk.com/authentication/v1/refreshtoken` - Today `v1/authorize` and `v1/gettoken` return `404`. The v2 equivalents (`/authentication/v2/authorize` and `/authentication/v2/token`) respond. - The code is the same at HEAD and in 2.7.1. ## Suggested fix Move the adapter to the v2 flow: https://aps.autodesk.com/en/docs/oauth/v2/developers_guide/overview/ The v2 token endpoint takes client credentials as basic auth: https://aps.autodesk.com/en/docs/oauth/v2/reference/http/gettoken-POST/ The user profile call (`userprofile/v1/users/@me`) is worth checking at the same time. ## Notes This turned up while adding OAuth providers to the appwrite.io integrations catalog. The Autodesk page is held back until this is fixed. cc @adityaoberai
Activity