Help with my “visitor” button #6886
Unanswered
Limezy
asked this question in
Self Hosting
Replies: 1 comment 3 replies
-
The even more frustrating part is that this "visitor button" would have been a perfect use case for the new "guest" role ! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Since a long time I have been using this patch : https://github.com/Limezy/outline_ynh/blob/v2-v0.75-anthropologiebiblique/sources/patches/main-02-visitor.patch to create a new "visitor" authentification provider. The idea being to have a one click button that would log in a read-only user.
It was working perfectly until now where the v0.76 has introduced a much more complex plugin mechanism, where it seems that all authentication plugins have to extend the oauth class (if I'm not wrong). It makes my visitor button harder to code since I can't just use the passport-req strategy like I used to do. I would have to find a way to feed the oauth logic with fake tokens etc...
Would you have an idea on how to solve my problem and/or how to build a similar work around ?
Thanks !
Beta Was this translation helpful? Give feedback.
All reactions