Authentication or custom query variable? (8 posts)

  1. Eric Martin
    Posted 5 years ago #

    First, I love this plugin! As a plugin author myself, I love when I need something and find it already exists...and it well written.

    Anyway, I was thinking about the need for authentication and was wondering what your thoughts were on the topic. Is it something you plan on adding or have any suggestions for implementing?

    On a side-note, what about the option of making the query variable configurable. So instead of json, I could set it to mobile or my-json or something else that would maybe prevent people from just trying ?json=1 on my site.

    Thanks again for this great plugin!

  2. Marco
    Posted 5 years ago #

    Yeah, I was wondering about authentication to for the create_post. I will have to implement it at some point, but if anyone already have an implementation I'd be glad to see it.

  3. dphiffer
    Plugin Author

    Posted 5 years ago #

    Thanks, glad you like the plugin Eric!

    No authentication mechanism exists yet, but it seems like an obvious addition. I think something really simple could work. I actually have a project that will require logins, so it's likely that I'll take this on in the near future.

    I hadn't thought of configuring the query var, but it sounds like it'd be pretty straightforward.


  4. MorningZ
    Posted 5 years ago #

    Eric: how about just making the folder something hard-to-guess? that would accomplish the same thing without any changes to the plugin..

    About authenticating to make posts, are there any oAuth-like plugins that could obtain a login session? (I just searched, came up empty, but in my defense there is a whole sea of hits looking for "oauth")

  5. noTxt
    Posted 5 years ago #

    Props, on the plug-in.

    Sorta new to wordpress, is attaching code to a trac ticket - ( http://plugins.trac.wordpress.org/browser/json-api ) - the best way to contribute to this project?

    I also noticed there was a copy on github:

  6. benatkin
    Posted 4 years ago #

    I need auth because I'm going to expose more resources. I think I'll just do a git fork with history for now, and put it on github when it's ready to share. :)

  7. bbottema
    Posted 4 years ago #

    I think I need auth as well, considering I have no way of logging in otherwise (it's a full javascript project). I guess I could fake a slab of html, hide it and use that, but that is very ugly (and very 2003, a reminiscence of faking Ajax-like behavior with iframes)

  8. mattberg
    Posted 4 years ago #

    My first attempt:


    Uses the WordPress cookie generator functions to use as a key. This could then be extended on the other controllers and even the create_post controller.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic