Git Product home page Git Product logo

Comments (3)

viqueen avatar viqueen commented on August 25, 2024

@dunhampa

There indeed a difference between CONFLUENCE_API_TOKEN and CONFLUENCE_CLOUD_TOKEN ,
some of the resources like emojis and link objects are served by non-confluence specific services and those require a cookie session token in addition to the api token.

I yet have to setup a confsite authenticate command that will derive both tokens upon successful login, but that requires some more crafty work.

For the time being, you may look for cloud.session.token cookie on your browser's network tab when navigating around Confluence, and filter by gateway/api urls.

Also this is how I use it for my personal site https://github.com/viqueen/viqueen.org , I think there's some doco gap , we do need to run a confsite init-site to get the site ID ... I see that you have an undefined in that resolved url there .../api/emoji/undefined/site

from confluence-static-site.

dunhampa avatar dunhampa commented on August 25, 2024

@viqueen

Thanks for the updates here. I tried some things but still stuck. Additional details:

I tried the init-site but received an error:

you need to login first
Error: could not create api client

image

To continue, I found the site ID via the browser and included it in my environment file manually in my .env file via CONFLUENCE_SITE_ID env value.

I also extracted my cloud.session.token cookie. It looks like these values both made it to the based on the logged errors, but still getting a 401:

image

from confluence-static-site.

dunhampa avatar dunhampa commented on August 25, 2024

Actually - with some more attempts I got it.

I was using org ID instead of site id.

Thank you

from confluence-static-site.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.