obsidian-wordpress icon indicating copy to clipboard operation
obsidian-wordpress copied to clipboard

Invalid username/password

Open kalico1 opened this issue 1 year ago • 2 comments

Hello! Thank you for what looks like a wonderful plugin! I really hope to get it working with my site.

Each time I attempt to publish, I get an error message that says "invalid username or password".

What I've Tried:

  • I have used the superadmin username along with an application password set for that user.
  • I have also set up a new "administrator" user on the subsite itself, and gave that user a separate application password.

Notes:

  • I am connecting to a subsite within a WP network. I am the network admin, so I have control over everything.
  • I checked the Obsidian console and here's what I see. One line is expanded. Note that the **** is obfuscating my domain name because it's not published yet. But the "search=xxx" is real. Seems a bit odd to be searching for a user as "xxx", but maybe that's normal. I also obfuscated part of the authorization key just in case. Not sure how it all works, just being uber safe.

REST GET https://*****.com/wp-json/wp/v2/users?search=xxx {headers: {…}}headers: authorization: "Basic ZmlvcmVsbGF3eWxkZT*******F3IFN0bmsgZmt0WQ=="[[Prototype]]: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()__defineGetter__: ƒ __defineGetter__()__defineSetter__: ƒ __defineSetter__()__lookupGetter__: ƒ __lookupGetter__()__lookupSetter__: ƒ __lookupSetter__()__proto__: (...)get __proto__: ƒ __proto__()set __proto__: ƒ __proto__()[[Prototype]]: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()__defineGetter__: ƒ __defineGetter__()__defineSetter__: ƒ __defineSetter__()__lookupGetter__: ƒ __lookupGetter__()__lookupSetter__: ƒ __lookupSetter__()__proto__: (...)get __proto__: ƒ __proto__()set __proto__: ƒ __proto__() plugin:obsidian-wordpress:80967

REST GET https://*****.com/wp-json/wp/v2/users?search=xxx {headers: {…}}

  • It may help to know that other remote processes are working in Obsidian. I just watched my Github backup run successfully, and also Obsidian publish.

Thanks in advance for any assistance!

kalico1 avatar Aug 21 '24 23:08 kalico1

Try my fixed version https://github.com/devbean/obsidian-wordpress/pull/89

inode- avatar Oct 14 '24 10:10 inode-

I'm having the same issue when using REST API with application password. "Invalid username or password"

When I switch to XMLRPC it works fine, connects, and publishes the post (even using the application password and not the user password)

Any ideas? I looked thru all my security plugins and didn't find anything disabling REST API. (One was disabling XMLRPC at first, but that was easy to turn off)

jhmonroe avatar Oct 26 '24 21:10 jhmonroe