-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Editing and Deleting Accounts #196
Comments
@emschwartz Currently when an account is created, we check to see if the account has an associated SE and if so send a request to the SE in order to register the account there.
|
Good questions.
@gakonst thoughts? |
Wrt 2, should it first also delete the account on the prior SE, or is there some kind of notion of inter-SE account transfer that we want to support? |
Apparently the spec includes an endpoint to delete accounts, though I'm not sure if that's currently supported in the implementation. Maybe it should try to call that endpoint but just ignore the error if that fails |
Currently in #186 we're changing from using autoincrementing numeric IDs to represent users to user-provided strings to represent users. Regarding account deletion, I'm curious whether we want to make the semantics such that an account that is deleted acts as though it is deleted for the purpose of accessing any info about the account (i.e. behavior is identical to having attempted to access an account with an ID that has never existed), but that also acts as though it does exist for the purpose of creating a new account. In other words, that we support account deletion, but that we don't support the recycling of usernames, and that once an account is made with a username, no new account can ever be made with that username. Regarding implementation details, we could achieve this either by leaving behind a tombstone whenever an account is deleted or by separately storing all usernames that have ever been created and checking against that list upon account creation. |
I think we should not allow username reuse right now. For context, I looked at the following posts from some different industries:
Allowing username reuse is a bit of a footgun, and that is all the more serious when you may be asking people to send you money at an address that's a combination of your provider's domain and your username. We can always add the ability to reuse usernames later if desired (it could also be an optional feature on the node). I like the option of maintaining a list in the store of |
We should also allow users to change their default SPSP account, the method exists but is not exposed on the SPSP API implementation, ideally we'd want to be in the |
The basic functionality is in, but there are still some touch-ups before I'd consider this done:
|
If there are no more username-related changes to be made then I'll go ahead and work on polishing this off. :) |
This was the only missing feature, and this is implemented in https://github.com/interledger-rs/interledger-rs/blob/master/crates/interledger-api/src/routes/accounts.rs#L248 |
Originally part of #128
The text was updated successfully, but these errors were encountered: