-
Notifications
You must be signed in to change notification settings - Fork 1
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
Proposed Draft Scope #24
Comments
Micropub for WordPress now supports this. |
To confirm, would this mean that you would only be able to create/read/update posts that are in the draft status, and if you wanted to promote them to published posts, you would need i.e. the |
@jamietanna Correct. No matter what status you passed in, everything would be set by your site as draft. |
And is there a way to determine whether a Micropub server supports drafts? I seem to think yes, but I can't find a reference in the issue tracker off the top of my head |
Will look into implementing this. Tracking ticket will be https://git.jacky.wtf/indieweb/koype/issues/212 (Originally published at: https://v2.jacky.wtf/post/d38997c4-bdc4-4fe8-8940-6d843e505a20) |
I've been using a separate Micropub server and then doing some manual validation of the post, but being able to do this with |
@jamietanna depending on how your tests run, may be mitigated by a test case that explicitly tries to post something with a "draft" scope and asserts that it is never shown to the public. |
I just implemented this on my site, it was pretty straightforward. Now a client can ask for My internal implementation is basically: if the scope of this token contains I like this because it means I can be more confident in testing out random Micropub clients and not worry about them publishing posts to my website before I've had a chance to look at them. Apps like iA Writer which already were setting |
Micropublish now supports an optional |
I've also implemented this in my Micropub server:
(Originally published at: https://www.jvt.me/mf2/2021/02/sswpb/) |
Updated the wiki... there are now 3 implementations of this on the server side, but only one on the client side. Wondering if, since this feature can be transparently supported by the server, but the client doesn't necessarily need to know about it, per @aaronpk 's implementation, if the normal client+server for stable applies? Either way, looking at the variances in implementation... The commonalities seem to be that if you have the draft scope, all posts are forced to draft status, even if set otherwise. The questions come at other decisions...although this could vary in implementations, worth discussing. What happens if you request both a create and a draft scope. @jamietanna In your implementation, are you requiring the create/update scope + the draft scope? In my original thought on the matter, you would request the draft scope in lieu of create, and it would give you the ability to create draft posts only. I didn't give thought to updating and deleting. Should you only be able to delete/update draft posts? Again, that could be an implementation detail, but it's worth discussing. |
Indiekit now supports this. I started with @jamietanna’s permission model, but adapted it slightly leading me to implement the following:
Thinking about the combination of That said, I’ve yet to implement much UI around creating posts, and none around editing or deleting posts, so this may change as I start to build that out. Here’s my consent screen: The first 3 permissions are slightly in contradiction to each other; however selecting I think this is fine...ish. I could possibly progressively enhance the form such that if you select the |
indiebookclub requests The new post form lets you select I wasn't sure if the |
This is a proposal to introduce an IndieAuth scope for Micropub called 'draft'. This would grant the user permission to create posts, but not publish them. posts would only be permitted in draft mode. I'm preparing to support this to my upgrade of scope capability in the relevant WordPress plugin.
The text was updated successfully, but these errors were encountered: