xStar37Original post
Rank 2: Process
Using Zitadels OAUTH Playground (https://zitadel.com/oidc-playground), I receive the following error when attempting the authentication process:
{"message":"Invalid redirect URL for OAuth success.","code":400,"type":"project_invalid_success_url","version":"1.5.10"}
In the Appwrite logs:
Plain text
2024-09-05 13:03:45 [Error] URL: /v1/account/sessions/oauth2/:provider/redirect2024-09-05 13:03:45 [Error] Type: Appwrite\Extend\Exception2024-09-05 13:03:45 [Error] Message: Invalid redirect URL for OAuth success.2024-09-05 13:03:45 [Error] File: /usr/src/code/app/controllers/api/account.php2024-09-05 13:03:45 [Error] Line: 1173```and after changing the scope to "openid"```2024-09-05 13:09:24 [Error] Method: GET2024-09-05 13:09:24 [Error] URL: /v1/account/sessions/oauth2/:provider2024-09-05 13:09:24 [Error] Type: Utopia\Exception2024-09-05 13:09:24 [Error] Message: Invalid `scopes` param: Value must a valid array no longer than 100 items and Value must be a valid string and at least 1 chars and no longer than 4096 chars2024-09-05 13:09:24 [Error] File: /usr/src/code/vendor/utopia-php/framework/src/App.php2024-09-05 13:09:24 [Error] Line: 774```
The redirect URI provided by AppWrite is also a parameter I use.> http://localhost/v1/account/sessions/oauth2/callback/oidc/saas-devSummary
Developers are facing issues with OAuth success URL redirects. The logs indicate an "Invalid redirect URL for OAuth success." error. The issue seems to be related to the redirect URLs being utilized. In one instance, the error message "Invalid `scopes` param" is encountered when the scope is set to "openid." Double-check the redirect URI provided by AppWrite and ensure it is being used as a parameter.