mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-02-11 03:13:15 +03:00
Google domain authentication is not working with bookstackapp integration #405
Closed
opened 2026-02-04 19:32:27 +03:00 by OVERLORD
·
15 comments
No Branch/Tag Specified
development
l10n_development
release
llm_only
vectors
v25-11
docker_env
drawio_rendering
user_permissions
ldap_host_failover
svg_image
prosemirror
captcha_example
fix/video-export
v25.12.3
v25.12.2
v25.12.1
v25.12
v25.11.6
v25.11.5
v25.11.4
v24.11.4
v25.11.3
v25.11.2
v25.11.1
v25.11
v25.07.3
v25.07.2
v25.07.1
v25.07
v25.05.2
v25.05.1
v25.05
v25.02.5
v25.02.4
v25.02.3
v25.02.2
v25.02.1
v25.02
v24.12.1
v24.12
v24.10.3
v24.10.2
v24.10.1
v24.10
v24.05.4
v24.05.3
v24.05.2
v24.05.1
v24.05
v24.02.3
v24.02.2
v24.02.1
v24.02
v23.12.3
v23.12.2
v23.12.1
v23.12
v23.10.4
v23.10.3
v23.10.2
v23.10.1
v23.10
v23.08.3
v23.08.2
v23.08.1
v23.08
v23.06.2
v23.06.1
v23.06
v23.05.2
v23.05.1
v23.05
v23.02.3
v23.02.2
v23.02.1
v23.02
v23.01.1
v23.01
v22.11.1
v22.11
v22.10.2
v22.10.1
v22.10
v22.09.1
v22.09
v22.07.3
v22.07.2
v22.07.1
v22.07
v22.06.2
v22.06.1
v22.06
v22.04.2
v22.04.1
v22.04
v22.03.1
v22.03
v22.02.3
v22.02.2
v22.02.1
v22.02
v21.12.5
v21.12.4
v21.12.3
v21.12.2
v21.12.1
v21.12
v21.11.3
v21.11.2
v21.11.1
v21.11
v21.10.3
v21.10.2
v21.10.1
v21.10
v21.08.6
v21.08.5
v21.08.4
v21.08.3
v21.08.2
v21.08.1
v21.08
v21.05.4
v21.05.3
v21.05.2
v21.05.1
v21.05
v21.04.6
v21.04.5
v21.04.4
v21.04.3
v21.04.2
v21.04.1
v21.04
v0.31.8
v0.31.7
v0.31.6
v0.31.5
v0.31.4
v0.31.3
v0.31.2
v0.31.1
v0.31.0
v0.30.7
v0.30.6
v0.30.5
v0.30.4
v0.30.3
v0.30.2
v0.30.1
v0.30.0
v0.29.3
v0.29.2
v0.29.1
v0.29.0
v0.28.3
v0.28.2
v0.28.1
v0.28.0
v0.27.5
v0.27.4
v0.27.3
v0.27.2
v0.27.1
v0.27
v0.26.4
v0.26.3
v0.26.2
v0.26.1
v0.26.0
v0.25.5
v0.25.4
v0.25.3
v0.25.2
v0.25.1
v0.25.0
v0.24.3
v0.24.2
v0.24.1
v0.24.0
v0.23.2
v0.23.1
v0.23.0
v0.22.0
v0.21.0
v0.20.3
v0.20.2
v0.20.1
v0.20.0
v0.19.0
v0.18.5
v0.18.4
v0.18.3
v0.18.2
v0.18.1
v0.18.0
v0.17.4
v0.17.3
v0.17.2
v0.17.1
v0.17.0
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.15.3
v0.15.2
v0.15.1
v0.15.0
v0.14.3
v0.14.2
v0.14.1
v0.14.0
v0.13.1
v0.13.0
v0.12.2
v0.12.1
v0.12.0
v0.11.2
v0.11.1
v0.11.0
v0.10.0
v0.9.3
v0.9.2
v0.9.1
v0.9.0
v0.8.2
v0.8.1
v0.8.0
v0.7.6
v0.7.5
v0.7.4
v0.7.3
0.7.2
v.0.7.1
v0.7.0
v0.6.3
v0.6.2
v0.6.1
v0.6.0
v0.5.0
Labels
Clear labels
🎨 Design
📖 Docs Update
🐛 Bug
🐛 Bug
:cat2:🐈 Possible duplicate
💿 Database
☕ Open to discussion
💻 Front-End
🐕 Support
🚪 Authentication
🌍 Translations
🔌 API Task
🏭 Back-End
⛲ Upstream
🔨 Feature Request
🛠️ Enhancement
🛠️ Enhancement
🛠️ Enhancement
❤️ Happy feedback
🔒 Security
🔍 Pending Validation
💆 UX
📝 WYSIWYG Editor
🌔 Out of scope
🔩 API Request
:octocat: Admin/Meta
🖌️ View Customization
❓ Question
🚀 Priority
🛡️ Blocked
🚚 Export System
♿ A11y
🔧 Maintenance
> Markdown Editor
pull-request
Mirrored from GitHub Pull Request
No Label
🐕 Support
Milestone
No items
No Milestone
Projects
Clear projects
No project
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: starred/BookStack#405
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @praneethsharma on GitHub (Aug 15, 2017).
This is not a bug, rather i did not find a discussion forum to get help with this issue
I have followed the instructions provided in https://www.bookstackapp.com/docs/admin/social-auth/ to integrate with google.
when i open bookstackapp, i can see "Login with Google" option. But when i click that it throws message "No action defined".
But in Authorized redirect URIs, I have provided the URI http://abc.com/login/service/google/callback
http://abc.com/register/service/google/callback
Could i get some assistance to resolve this this issue.
@ssddanbrown commented on GitHub (Aug 17, 2017):
Hi @praneethsharma,
Looking at the notification shown it would suggest the request to google and the callback redirect is working fine.
The only thing I can imagine might be wrong here is that sessions are not saving.
Are normal login methods working okay and are you able to upload images to pages?
Have you made any changes to any variables in
.envstarting withSESSION_?Did you set the permissions of the
storage/folder to be writable by the server?In the
.envfile you could try changingSESSION_DRIVER=filetoSESSION_DRIVER=databaseto see if that helps at all.@praneethsharma commented on GitHub (Sep 2, 2017):
Hi @ssddanbrown ,
Sorry for late response. I tried changing
SESSION_DRIVER=filetoSESSION_DRIVER=databaseand now i was redirected to google login page and after entering credentials, i got below error message. I believe there is an issue with callback URL which gave me below error message.Request URL:http://abc.com/login/service/google/callback?state=Sz08TS8opjwtsPnrOJE8YQFru2D4F4ClZpkrlTpw&code=4/Td4ffvuLK1Du5FGDkdGA7vYNBXxTzltxWzKlinz-qrE&authuser=0&hd=abc.com&session_state=02f9479a8b048174c347a0e7d38bbfe37bbfb1dd..0f69&prompt=none
I created a new API, after updating the credentials, i got new error that my google account is not associated with any users.
Does this mean, if i am part of a custom domain under google, then i need to do Domain verification in APIs & Auth and google mail.
@ssddanbrown commented on GitHub (Sep 2, 2017):
@praneethsharma Thanks for the extra information.
To find the issue behind that message, to give a better idea of what the issue could be, the instructions here can be followed to view the error message in more detail:
https://www.bookstackapp.com/docs/admin/debugging/
@praneethsharma commented on GitHub (Oct 3, 2017):
@ssddanbrown , today i tried integrating with slack, got stuck at same point,
So made "APP_DEBUG=true" in .env file.
then tried loading the page. i could see few options enabled.
laravel.log looks like this, not sure what to look at now. could you please check.
#48 {main} #47 /var/www/bookstack/public/index.php(53): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) #46 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(116): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Re quest)) #45 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(149): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #44 /var/www/bookstack/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(102): Illuminate\Routing\Pipeline->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))@ssddanbrown commented on GitHub (Oct 3, 2017):
Hi @praneethsharma, That error notification is saying you have not linked the account to a user. If your profile already exists login > Go to profile settings > At the bottom link your Slack account.
If your login does not already exist go to the 'Sign-up' page and select Slack there instead of the login page.
@praneethsharma commented on GitHub (Oct 6, 2017):
Hi @ssddanbrown slack is also integrated with google. So slack is also depended on google's authentication. I will switch back to google and update you.
@praneethsharma commented on GitHub (Oct 6, 2017):
Its the same issue. Trying to understand this, according to the social authentication documentation, we are creating google+ API.
But i have custom domain in google. In that case, should i create any other API, so that all the members of domain will be able to login to bookstackapp with domain credentials ?
I am not a g-suite admin, so is that a restriction ? I suspect this because, i am able to create a project, create API and apply credentials in .env file. But i see no users are linked to this account. Does this mean, no users are part of the project i created ?
@ssddanbrown commented on GitHub (Oct 6, 2017):
@praneethsharma Any users with a google account will be able to use your auth unless they are part of a business account where the admin has disabled this.
The screenshots above still show the login page. The error message shows the auth method is talking to the external service okay.
Can you go to
/registerinstead of/loginand try your slack/google auth option from there? You may have to enable registration in the BookStack settings.@praneethsharma commented on GitHub (Oct 19, 2017):
I tried adding /register instead of /login, i got "registrations are disabled" message.
Yes @ssddanbrown , its part of a business account. I will get admin privileges and try debugging this. Will update here incase of any queries.
@obeardly commented on GitHub (Dec 19, 2017):
@praneethsharma Did you ever get this working? I've had the worst luck at getting Bookstack to authenticate against anything but internal authentication.
@obeardly commented on GitHub (Dec 19, 2017):
@praneethsharma @ssddanbrown I got this working via Slack. I followed the instructions on the page for Third Party Authentication. Then I enabled registration and limited it to my domains. I had each of my users to the the Bookstack registration URL, and register with Slack. I'm off to the races. I hope this will work for you too.
@praneethsharma commented on GitHub (Dec 19, 2017):
@obeardly I tried integrating with Slack, but my slack account was in turn depending on google authentication. So it got back fix google domain authentication. As i did not get G-Suite admin privilege, i couldn't test further.
@ssddanbrown sorry, i should have informed about this. I will not be able to test further as i am not a domain administrator. As @obeardly confirmed that integration with Slack is working, i think we can close this issue.
@praneethsharma commented on GitHub (Nov 21, 2018):
Hey All,
Just wanted to update that i got this work.
Went to my user account settings and i clicked on "Connect Account" option under. So after that i logging out and tried logging in via google account and it worked. But as admin, i am not able to do that for other users.
For now when i create a user, they have to login with password and then go to settings and they are able to link their google account. However, is there a way, i can force all the users in the domain to use google authentication, without they login with password ?
@nekromoff commented on GitHub (Dec 17, 2018):
I did limit login to social accounts only via editing login/register templates and removing standard user+password form parts. Thus only social login option is left.
@praneethsharma commented on GitHub (Dec 27, 2018):
Got it. Thanks @nekromoff