wiki-v1 icon indicating copy to clipboard operation
wiki-v1 copied to clipboard

How to invoke wiki content from another application as a link

Open singhcl opened this issue 7 years ago • 5 comments

Actual behavior

I am not finding a way to open a wiki doc page from another application

Expected behavior

I should be able to open a wiki page from my main application to show this page as a help information

Steps to reproduce the behavior

  1. I want to show a help button in my application.
  2. As I click on help icon, I want to open the respective wiki page
  3. I dont know how to get access to this page. If I provide direct URL it asks for user login info

singhcl avatar Oct 09 '18 17:10 singhcl

Did you set defaultReadAccess to true in config.yml? That was in the docs...


auth:
  defaultReadAccess: true

saucepleez avatar Oct 10 '18 15:10 saucepleez

Make sure the public option is set to true in your config.yml.

NGPixel avatar Oct 11 '18 02:10 NGPixel

Hi both,

thanks for your suggestions but it did not work.

  1. Upon setting defaultReadAccess, it still takes to login page
  2. Upon making public : true, it shows a forbidden page with link to login
  3. and yes, i restarted wiki server post the changes.

Here is the updated config.yaml

title: Wiki
host: <host>
port: <port>
paths:
  repo: ./repo
  data: ./data
uploads:
  maxImageFileSize: 3
  maxOtherFileSize: 100
lang: en
langRtl: false
public: true
auth:
  defaultReadAccess: true
  local:
    enabled: true
  google:
    enabled: true
    clientId: GOOGLE_CLIENT_ID
    clientSecret: GOOGLE_CLIENT_SECRET
  microsoft:
    enabled: true
    clientId: MS_APP_ID
    clientSecret: MS_APP_SECRET

singhcl avatar Oct 11 '18 14:10 singhcl

is there a way to call the pages with non interative user/password if I dont want to make it public ?

singhcl avatar Oct 11 '18 14:10 singhcl

Make sure the Guest user has the proper read permissions. Otherwise the public option won't help.

is there a way to call the pages with non interative user/password if I dont want to make it public ?

No.

NGPixel avatar Oct 12 '18 02:10 NGPixel