Code Monkey home page Code Monkey logo

ep_auth_session's Introduction

ep_auth_session

A small script for etherpad-lite which provides a route that authenticates the user with the provided sessionID parameter and redirects to the given padName. Usefull when integrating etherpad in a application on a another domain.

NPM version node version license npm download

Install

ep_auth_session

Restart your etherpad-lite instance to recognize the plugin.

Usage

Include an iframe with the src set to etherpad page /auth_session?sessionID=SESSION_ID&padName=PAD_NAME

<iframe src="http://pad.test.de/auth_session?sessionID=SESSION_ID&padName=PAD_NAME" width="600" height="400"></iframe>

You can optionally include the groupID and lang as well

<iframe src="http://pad.test.de/auth_session?sessionID=SESSION_ID&groupID=GROUP_ID&padName=PAD_NAME&lang=LANGUAGE" width="600" height="400"></iframe>

ep_auth_session's People

Contributors

dasbaumwolltier avatar kurounin avatar rhansen avatar txsl avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ep_auth_session's Issues

Language-Support

Hi,

please can you support the lang-Parameter.

Therefore you have to add only this lines before the redirect:
if ( req.query.lang) {
redirectUrl += "&lang=" + req.query.lang;
}

Thank you!

Pass given padOptions as GET parameters

When embedding a pad via iframe, you can set some padOptions as GET parameters in the iframe URL, like showLineNumbers or showChat. But after session authentication, the parameters are gone, as the plugin doesn't pass them on when redirecting to the actual pad. Only padName, groupID and langare passed when given.

Etherpad 1.8.9 doesn't start after installing ep_auth_session

I have been using ep_auth_session without any issue. Recently, I tried it on the etherpad 1.8.9. After installing the plugin, etherpad doesn't start.
If I uninstall the plugin and start it again, it works fine.
Could you please help in resolving this issue.

After installing the plugin

Screenshot 2021-02-24 at 17 35 29

This is after uninstalling the plugin (works perfectly)

Screenshot 2021-02-24 at 17 38 29

Working with Nextcloud plugin?

Am I guessing right that this would solve one of the issues with the Nextcloud plugin, as outlined here:
otetard/ownpad#4

Would be really nice if someone with Etherpad coding experience could have a look that Ownpad's API integration branch...

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.