API Key Authentication

Hello,

I’m having difficulties accessing the API with authentication with the token generated. I am using the latest version (ojs-3.2.0-3) and I can access it when I’m logged in.

I have setup the config.inc.php with a salt and an api_key_secret long enough. I keep getting the error of accessDenied.

Only thing I found is that when selected both boxes in the User Account in Profile > API Key, they do not stay select and the API Token does not change.
Where in the database is this information kept? I could try to manually select both options.

If you can point me in the right direction I would appreciate it.

Regards,

Hi @k457,

You may be encountering Issues · pkp/pkp-lib · GitHub there’s a (draft) patch there that should resolve it. If it works for you, please let us know so we can prioritize this for the next release.

Thanks,
Alec Smecher
Public Knowledge Project Team

Thank you for answering so fast.
This indeed solved the problem.

1 Like