API with group permission does not work?
-
As I didn't receive any support from Wiki.js maybe someone here knows a solution:
I enabled the API access, created a key with full access and got the content of a single page, e.g.:
{ pages { single (id: 15) { path title content createdAt updatedAt } } }Then I created a new API key and selected a group for permissions. I assigned all available permission in the content section.
Under page rules, I configured the following:
Allow read:pages, read:source, read:history, read:asset
Path starts with | any locale | /When posting the request, I receive a 200: 'You are not authorized to view this page.' It does not matter what id I use. I also tried to configure the exact path of pages I tried to fetch.
Fetching the list of all pages, however, works with this API key:
{ pages { list (orderBy: TITLE) { id path title } } }I use Wiki.js 2.5.298 and Cloudron 7.3.6.
Many thanks!
-
As I didn't receive any support from Wiki.js maybe someone here knows a solution:
I enabled the API access, created a key with full access and got the content of a single page, e.g.:
{ pages { single (id: 15) { path title content createdAt updatedAt } } }Then I created a new API key and selected a group for permissions. I assigned all available permission in the content section.
Under page rules, I configured the following:
Allow read:pages, read:source, read:history, read:asset
Path starts with | any locale | /When posting the request, I receive a 200: 'You are not authorized to view this page.' It does not matter what id I use. I also tried to configure the exact path of pages I tried to fetch.
Fetching the list of all pages, however, works with this API key:
{ pages { list (orderBy: TITLE) { id path title } } }I use Wiki.js 2.5.298 and Cloudron 7.3.6.
Many thanks!
@cfelbertp Seems something wiki.js specific. Have you asked at https://github.com/Requarks/wiki/discussions already ?
-
@cfelbertp Seems something wiki.js specific. Have you asked at https://github.com/Requarks/wiki/discussions already ?
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login