
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ep_icat_auth
Advanced tools
Hooks into etherpad lite auth to provide ICAT+ authentication based on investigations
This plugin, based on the sessionId passed by query param, authenticates and authorizes an user. The authorization is based on the permissions to the logbook via datagateway-api
In your etherpad-lite dir:
npm install ep_icat_auth
Add to settings.json:
"users": {
"icat": {
"server": "https://datagateway.server.com"
},
}
It is supposed to be used inside an iframe:
<div>
<iframe
title="Etherpad"
src={`${etherpadURL}/auth_session?sessionID=${session}&padName=${padId}`}
width="100%"
height={window.innerHeight}
/>
</div>
Etherpad can be fully installed by following the next recipe:
git clone --branch master https://github.com/ether/etherpad-lite.git &&
cd etherpad-lite &&
npm install --legacy-peer-deps ep_headings2 ep_markdown ep_comments_page ep_align ep_font_color ep_embedded_hyperlinks2 ep_icat_auth ep_auth_session &&
./bin/run.sh
I did experience problems with the latest version of node. I work around the issue by installing the version 14.18.2 via nvm
nvm install 14.18.2
Generate private key
openssl genpkey -algorithm RSA -out /path/to/private.key
Generate CSR (Certificate Signing Request) and Self-Signed Certificate
openssl req -new -key /path/to/private.key -out /path/to/certificate.csr
openssl x509 -req -days 365 -in /path/to/certificate.csr -signkey /path/to/private.key -out /path/to/certificate.crt
Replace /path/to/private.key, /path/to/certificate.csr, and /path/to/certificate.crt with appropriate file paths.
Configure Nginx:
Edit the Nginx configuration file, which is usually located at /etc/nginx/nginx.conf or in a separate file inside /etc/nginx/conf.d/ or /etc/nginx/sites-available/.
Add the following server block:
server {
listen 443 ssl;
server_name YOUR_SERVER_IP; # Replace with your server's IP address
ssl_certificate /path/to/certificate.crt;
ssl_certificate_key /path/to/private.key;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:9001; # Replace with the Etherpad's actual listening address and port
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
Replace YOUR_SERVER_IP with the public IP address of your server, and update the proxy_pass directive with the address and port where Etherpad is running.
Restart Nginx:
sudo systemctl restart nginx
Save the configuration file and restart Nginx to apply the changes
If you are using ssh through visual studio and have set the port forwarding protocol to https you must disable this before as it will conflict
FAQs
Hooks into etherpad lite auth to provide ICAT+ authentication based on investigations
The npm package ep_icat_auth receives a total of 0 weekly downloads. As such, ep_icat_auth popularity was classified as not popular.
We found that ep_icat_auth demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.