Back

Disable Login/Registers

  • 0
  • Accounts
  • Web
Hexi
19 Dec, 2023, 17:46

Is it possible to disable registers/login requests? So I can handle them my own. If so how would oauth2 work? So for example ban ip's, track the logins to an external app, add referrals and other things.

TL;DR
The user wants to disable registration and login requests and handle them through their own backend instead of using Appwrite. They also want to ban IPs, track logins to an external app, and add referrals. One solution is to disable email login and allow only OAuth. To ensure sessions match the user's IP, all sessions should show the IP of the user under Sessions. To send the IP address with the session, use the appropriate method provided by the chosen OAuth provider.
D5
19 Dec, 2023, 18:05

You can disable email login and allow only OAuth

D5
19 Dec, 2023, 18:09

But you basically want to have your own oauth provider?

Hexi
19 Dec, 2023, 18:50

No i mean only register through the backend of my end instead of going through appwrite

Drake
19 Dec, 2023, 20:52

You can set the users limit to a low number:

Drake
19 Dec, 2023, 20:52

if a new user tries to create an account or tries to create an oauth2 session, they'll get an error

Hexi
19 Dec, 2023, 20:53

Alright. Will this effect the login section?

Hexi
19 Dec, 2023, 20:53

Or only registers

Drake
19 Dec, 2023, 21:06

Only client side account creation

Hexi
29 Dec, 2023, 10:30

And how to send the IP address and etc with it?

Hexi
29 Dec, 2023, 10:30

So the session's match the IP the user used

ideclon
29 Dec, 2023, 15:34

All sessions should show the IP of the user under Sessions

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