tl;dr: same project settings, same OIDC credentials. Auth works on self hosted but not in cloud.
I have a project in my self hosted instance with a single web platform (Next.js) and I've configured OIDC as my authentication method which has been working fine for now. I was planning to migrate to Appwrite Cloud, but when I configured auth there with exactly the same credentials, authentication simply doesn't work (I didn't use the "Migrate to cloud" option, but still the auth settings is exactly the same).
Just as a general FYI I'm using the Appwrite SDK with provider: OAuthProvider.Oidc in account.createOAuth2Session as stated in the docs. But this is not related to the code itself, because the implementation is working fine in the self hosted instance.
When I log in using the cloud instance, I see the successful login in my IdP logs, but back in my app this is all I get:
There was an error processing your request. Please check the inputs and try again. (general_bad_request, 400)
Again, no changes in the code, no differences in the OIDC settings, everything exactly the same. I change the endpoint/projectId from self hosted to cloud and it stops working.
I don't see anything in the cloud instance that can let me check for logs or anything like that, and haven't found anything regarding OIDC not being available in my cloud instance in the docs, am I missing something? Thanks! :)
Recommended threads
- Is it possible to deploy pre-built Nuxt ...
Hi, is it possible to only deploy the ./.output folder of a Nuxt App that uses server side routes to Appwrite Sites? Background is that the build produced ...
- Custom domain stuck at Generating certif...
Link : https://cloud.appwrite.io/console/project-fra-6601936fa10ca8d54468/functions/function-660194a6ec81f4864cf5/domains Added mentioned appwrite name servers...
- Bun Runtime
Any chance we could get Bun 1.3.8 added to the runtimes? We're currently on 1.1 and the update would be awesome