-
Notifications
You must be signed in to change notification settings - Fork 78
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
Registration API #41
Comments
Would it make sense to reconsider the flow? I do agree that admin approval might be important. But the greater goal for me would be to have a signup flow a la dropbox: So this would be the API: POST /.well-known/nextcloud/registration
And then as a provider, I could redirect it to another backend like: And then in term of flow, we could still do the following a posteriori:
And depending on these options, the server could return a response showed to the client.
I know it would require some changes to the current app. But in term of UX, this would be optimal IMHO. |
I'll be working on implementing a provider list and optional registration feature on the Nextcloud client during this years google summer of code, so I'm willing to implement such an API and especially use the existing registration app for that. @pellaeon Would you be open to pull requests for that? @pierreozoux That draft makes sense, especially auto discovery via .well-known path would be nice. I've summarized both of your ideas to this rough API draft: POST /apps/registration/api/1.0/register/verifyRequest Data:
Responses:
POST /apps/registration/api/1.0/register/createRequest Data:
Response Data 200 Signup successfull
GET /apps/registration/api/1.0/register/status/:registrationTokenResponse Data 200 if registration status is FINISHED
403 if email confirmation is still required
As an initial starting point i would add two possible states to the registration status:
Overview of the client procedure:
cc @rullzer |
All endpoints the client interacts with have to be OCS endpoints. |
nextcloud/server#211 suggests that there could be a RESTful API for the clients to directly register in the client.
API flow that I can think of now:
POST
email address to/api/register
, returns if address is valid/allowedPOST
to/api/verify
, returns correct/incorrectPOST
credentials and token to/api/create
, returns success/failureA different API design is required considering admin approval #2
Notes:
The text was updated successfully, but these errors were encountered: