Back

[SOLVED] Trying Appwrite OAuth but Getting Error

  • 0
  • Accounts
  • Flutter
Infinil
5 Aug, 2023, 18:11

I have double checked the android manifest code.. made the oauth url for both google and discord but i seem to be stuck

TL;DR
The user was having an issue with Appwrite OAuth and was getting an error. They realized that they had a typo in the endpoint and apologized for the mistake. They asked if they still needed to set the endpoint for the client and if OAuth required any open ports. Someone suggested logging the endpoint in the account client before making the API call and mentioned that Appwrite must be accessed on the standard ports. The user confirmed that they have Docker containers and mentioned using an nginx proxy manager, but the backend endpoint is proxied. They also shared some code from the Android manifest. In the end, they were stuck and seeking further assistance.
Infinil
5 Aug, 2023, 18:11

my appwrite backend is self hosted on a vps

Infinil
5 Aug, 2023, 18:12
TypeScript
<activity android:exported="true" android:name="com.linusu.flutter_web_auth_2.CallbackActivity" >
            <intent-filter android:label="flutter_web_auth_2">
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="appwrite-callback-animenetic" />
            </intent-filter>
        </activity>```
Infinil
5 Aug, 2023, 18:12

inside application tag

Drake
5 Aug, 2023, 18:12

Maybe something is wrong with your endpoint?

Infinil
5 Aug, 2023, 18:14

i mean its the same for production related stuff

Infinil
5 Aug, 2023, 18:14

shuldnt be an issue

Infinil
5 Aug, 2023, 18:14

does oauth need any port open?

Infinil
5 Aug, 2023, 18:14

iirc i have docker containers like 7443:443

Infinil
5 Aug, 2023, 18:15

cuz there is nginx proxy manager too but the backend endpoint is proxied

Infinil
5 Aug, 2023, 18:15

and works normally with database and storage connections etc

Drake
5 Aug, 2023, 18:15

Appwrite must be accessed on the standard ports

Drake
5 Aug, 2023, 18:16

Can you log the endpoint in the account client before making the API call?

Infinil
5 Aug, 2023, 18:17
Infinil
5 Aug, 2023, 18:17

but like i still have to set endpoint for client?

Infinil
5 Aug, 2023, 18:17

set project etc

Drake
5 Aug, 2023, 18:19

Yes...

Infinil
5 Aug, 2023, 18:21

i want to apologize 💀

Infinil
5 Aug, 2023, 18:21

i had a typo in endpoint

Infinil
5 Aug, 2023, 18:21

sorry-

Drake
5 Aug, 2023, 18:22

No worries. Glad you were able to figure it out

Infinil
5 Aug, 2023, 18:22

thanks!

Drake
5 Aug, 2023, 18:37

[SOLVED] Trying Appwrite OAuth but Getting Error

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