Coder Social home page Coder Social logo

Public mode does not work about kanboard_ynh HOT 5 CLOSED

mbugeia avatar mbugeia commented on June 3, 2024
Public mode does not work

from kanboard_ynh.

Comments (5)

maniackcrudelis avatar maniackcrudelis commented on June 3, 2024

A première vue comme ça (mais c'est à tester), je dirais que ton principal souci est le '?', qu'il faut échapper avec %.
Et terminer avec '.*$' pour le token qui suit j'imagine.
Ça donnerais ça:

%?controller=board&action=readonly&token=.*$
%?controller=feed&action=project&token=.*$
%?controller=ical&action=project&token=.*$
%?controller=feed&action=user&token=.*$
%?controller=ical&action=user&token=.*$
%?controller=task&action=readonly&task_id=1&token=.*$

Et pour éviter de matcher autre chose que ton app, j'ai l'habitude d'ajouter le domaine et le path avant. Au moins je suis sûr que seule l'app est concernée par ces regex.

Par contre, je comprend pas dans quel cadre tu veux déprotéger ça!?
Tu voudrais qu'une partie de kanboard reste privée en mode public?

from kanboard_ynh.

mbugeia avatar mbugeia commented on June 3, 2024

En fait c'est pour l'accès public qu'il est possible d'activer à la fois dans les projets et dans le profil utilisateur. Qui permet notamment d'utiliser le lien iCal et le flux rss. Pour un mode public complet pas besoin vu qu'à priori on déprotège tout.

En tout cas merci beaucoup, je testerais tout ça la semaine prochaine après ce long WE.

from kanboard_ynh.

maniackcrudelis avatar maniackcrudelis commented on June 3, 2024

Et, juste pour réduire le nombre d'entrée dans le sso. Car on ne peut pas concaténer les regex en lua, pas de OU logique.
Ce n'est pas suffisant de déprotéger:

%?controller=board&action=readonly&token=.*$
%?controller=feed.*$
%?controller=ical.*$
%?controller=task&action=readonly&task_id=1&token=.*$

Juste pour optimiser, le principal reste que ça fonctionne ;)

from kanboard_ynh.

Psycojoker avatar Psycojoker commented on June 3, 2024

Issue migrated at https://dev.yunohost.org/issues/489

It would be great if you could use this bugtracker instead of github from now one :) (you don't have to create an account and you can log with github)

from kanboard_ynh.

Jibec avatar Jibec commented on June 3, 2024

quotting the other bugtracker on "2017-08-30":

It was fixed more than one year ago by this commit: 2cfe386

from kanboard_ynh.

Related Issues (20)

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.