Comments (3)
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.
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
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:
from confluence-static-site.
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)
- we need some visual regression tests
- we need some dev container setup
- Dependency Dashboard
- toc macro support
- Contribution.md for Build and Use Question on --legacy-peer-deps HOT 2
- Add open source license to this project HOT 2
- recently updated macro support
- recently updated : exclude home page from rendered items
- rewrite-url : broken regex
- release under @labset npm org
- release under @labset npm org
- Blank Pages HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from confluence-static-site.