Sharing authentication with another system to allow auto login in wiki.js #4665
Replies: 5 comments 4 replies
-
I'm trying to make that build but I can't get it to work. I have my own site, and I want access to be automatic for people who were logged into my site. Any ideas?? THANKS! |
Beta Was this translation helpful? Give feedback.
-
I'm trying too, I have been looking at the code for about two days trying to figure out the best way. Kind of silly to do that when it may only take someone a few minutes to at the very least point us in the right direction. Or NO direction if it is not setup for that (that is perfectly fine too). Seems like the devs to not monitor discussions and have blocked the ability to make issues. I have the session secret and the decrypted JWT but it is still a guess what the best way is. In the code in some cases like oauth2 it looks like it will pull key fields from the profile. I'm not sure if it will create or store it in a way that it will be used. Also, the call flow may be awkward, oath is designed to forward out of the wiki for authentication then have them come back. We just want them in. The graphql can create users and manage their profile and log them in and fetch a JWT token. But what then? How does the outside server shove that JWT token back into the wiki so they can just go right in? I see references to Cookies and cookies can't cross domains. Probably best to just to fork it and do something like piggy back on the session library with ones own route to initialize it.. It would be cool if there were a discord channel or something. I'll post again when I have something just hope it is not a hack. |
Beta Was this translation helpful? Give feedback.
-
I have had some success. This is what I have so far: #5149 (comment) |
Beta Was this translation helpful? Give feedback.
-
Is is possible for wiki.js to use authentication service in another system in such a way that a user who is authenticated in the other system can bypass the login page of wiki.js and be automatically logged in?
Typical use would be a user authenticates with the other system, then on a link is redirected to wiki.js, for many users it will seem strange to have to log in again since they have already logged into the other system.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions