Rank 1: Thread
Hello, we are new to Appwrite and want to explore whether it will meet our development needs.
We are developing server-based REST API's and would like to utilize Appwrite for the authentication, session management and permissions of our API's users - all purely on the server-side.
To be more specific, we would (ideally) like to use Appwrite to:
- Create and manage users for our API
- Users will consume a
/tokenendpoint on our API, where they will provide a request containing a UserId and Password, eg via Basic Auth (that corresponds to an Appwrite User). Our API will then return a JWT token if authentication is successful. The returned token should contain the User's allowed API scopes. - Our API users will then make further requests to other resources on our APIs, using their JWT tokens as Bearer tokens to authorise themselves.
- Our API will validate each API User's token as well as its scopes.
So that leads us to a few general questions about Appwrite's intended usage patterns and its flexibility. In particular, we would like to know the following:
- Can Appwrite authenticate users on the server-side via their UserIDs and Passwords?
- Can the resulting Session information of an authenticated user be used to generate a JWT on the server side? (Or do we have to completlely roll our own solution?)
- Does Apprite offer a solution to create and manage custom User permissions that are Application-specific (thus in the Application "scope") - so that it can eventually be modelled as scope in tokens for API resource consumption?
- Does Appwrite offer a solution to manage (eg manually issue and refresh) JWT tokens purely on the server-side?
Sorry about all the questions and thank you for your time and interest if you have read this far.
We would appreciate it if anyone could point us to a known best-practice approach, recipe or specific documentation to handle a project with similar requirements.
