-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Consolidate /authorize-farm and /register-farm to a single endpoint #109
Comments
This shouldn't be too challenging. The main reason these endpoints were separated is because a But if we create a new The downside to this is that a profile is created before being fully authorized. This opens up the possibility for an Aggregator to be spammed... but we do have an existing @todo to ping the supplied URL |
This id done!
I ended up taking a different approach. Being able to register new farms before they are authorized just seems weird. I modified the This refactor took out a couple features of the "public registration" use case where users could specify their farm name and tags. Now, it uses the farmOS server name & defaults to no tags. The user has a chance to "Verify" everything after they have authorized, but before the farm is added to the aggregator. This seems sensible for now, especially given that this use case isn't currently being used.. Another benefit of this is that it allows admins of existing farms to come and re-authorize their farm at any time. Previously they needed a link with an #84 comes to mind too. This could be implemented in this authorization-flow stepper as a future follow up. |
The
simple_oauth
module only supports a single redirect URI. We are currently using separate pages to support registering & re-authorizing farms. Lets consolidate this logic to a single endpoint so only one redirect URI is required.The text was updated successfully, but these errors were encountered: