wp-net / WordPressPCL

This is a portable library for consuimg the WordPress REST-API in (almost) any C# application
MIT License
335 stars 131 forks source link

I Can't Create User, I'm doing it wrong? #334

Closed SirAbdllah closed 3 months ago

SirAbdllah commented 1 year ago

I have not used the api before but I am trying to create a page to register an account in Wordpress, at first I made this code but it does not indicate an existing error and does not perform the task

This is a picture of the code

I used .net WebForm Capture

SirAbdllah commented 1 year ago

WordPressPCL.Models.Exceptions.WPException: 'JWT is not configured properly.'

it show this after trying many times

SirAbdllah commented 1 year ago

WordPressPCL.Models.Exceptions.WPException: 'Authorization header malformed.' now it show me this

ThomasPe commented 1 year ago

The code you have looks fine, I assume it's still an issue with your JWT config. Are any other calls to the REST API working that require authentication? Creating posts?

ThomasPe commented 3 months ago

stale