Back

GoogleAUTH AppwriteException: This provider is disabled. even its enabled

  • 0
  • Self Hosted
  • Auth
VectorX
22 Aug, 2024, 03:16

I'm trying to integrate Appwrite with unity and everything setup finally, SSL setup perfectly all self hosted and I'm happiest guy on the planet right now bec I no longer gonna have to pay for firebase:D

However, when it comes to AUTH, after many tries , I stuck at that point, where I setup everything according to dennis awesome video : https://www.youtube.com/watch?v=tgO_ADSvY1I , however, the Exception always through saying the provider is disabled

Its self hosted on docker, and using namecheap domain with DNS records setup correctly, and SSL verified perfectly without any issues.

any suggestion?

TL;DR
Developers are facing an issue where the provider is disabled despite being enabled. The error might be caused by not including the project ID in the headers. They are recommended not to use API keys client-side. Connecting unity or .NET app to Appwrite directly may not be possible using the current package. The official .NET package is for server-side, not client-side. Double-check if provider is enabled in project auth settings and ensure project ID is included in the request. SSL and DNS are set up correctly in a self-hosted Docker environment.
VectorX
22 Aug, 2024, 03:18

Giving further detail, I'm using Appwrite Nuget package version

Steven
22 Aug, 2024, 03:21

Hmm is that our official dotnet package? If so, that is for server-side rather than client-side so you might not be able to use it.

Steven
22 Aug, 2024, 03:22

Regardless, you might be getting provider disabled error if you haven't enabled the provider in your project auth settings.

Either that or the project ID isn't set/in the request

VectorX
22 Aug, 2024, 03:25

the provider is enabled correctly on dashboard, I was able to connect to database and list some documents, so I believe project ID is not the problem

VectorX
22 Aug, 2024, 03:25

does it mean, I shall give up the idea regard Auth for .Net client?:D

Steven
22 Aug, 2024, 03:27

Possibly...just make sure you don't use an API key client side.

Steven
22 Aug, 2024, 03:27

Please share details about the request being made

VectorX
22 Aug, 2024, 03:30

The request is very simple

  • Account user = new Account(client); var x = await user.CreateOAuth2Token(OAuthProvider.Google);*
VectorX
22 Aug, 2024, 03:30

You mean , I shall not ship any client that connect to appwrite directly using API keys generated by appwrite dashboard?

Steven
22 Aug, 2024, 03:35

Yes, correct

Steven
22 Aug, 2024, 03:35

Can you log the network request?

VectorX
22 Aug, 2024, 03:36

I dont have fiddler installed atm, but this is the docker log

Error] Timestamp: 2024-08-22T03:36:03+00:00 2024-08-22 05:36:03 appwrite | [Error] Method: GET 2024-08-22 05:36:03 appwrite | [Error] URL: /v1/account/tokens/oauth2/:provider 2024-08-22 05:36:03 appwrite | [Error] Type: Appwrite\Extend\Exception 2024-08-22 05:36:03 appwrite | [Error] Message: This provider is disabled. Please enable the provider from your Appwrite console to continue. 2024-08-22 05:36:03 appwrite | [Error] File: /usr/src/code/app/controllers/api/account.php 2024-08-22 05:36:03 appwrite | [Error] Line: 1603

VectorX
22 Aug, 2024, 03:38

regard API part, what possible solution then to connect unity or .NET app to Appwrite directly? , I know its noob question

Steven
22 Aug, 2024, 03:38

These docker logs don't give enough detail about the request. You need to be able to see the headers in the request and confirm the project id is included in the headers

Steven
22 Aug, 2024, 03:39

You can try using the package. Again, just don't use API keys.

Otherwise, you'd have to refer to the REST API docs and manually make the API calls using whatever http request library that's available.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more