Social login / registration will fail in this specific scenario #1105

Closed
opened 2026-02-04 23:48:16 +03:00 by OVERLORD · 2 comments
Owner

Originally created by @nekromoff on GitHub (Mar 26, 2019).

Describe the bug
A clear and concise description of what the bug is.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Use Social login (e.g. Google) to log in without previous registration
  2. The system will tell you that such user is not connected to any social accounts.
  3. Next try to register via social service / e.g. Google and the system will tell you that user already exists.

Expected behavior
Social registration via first-time login should be either automatic or if so, do not block actual registration from hapenning.

Screenshots
If applicable, add screenshots to help explain your problem.

Your Configuration (please complete the following information):

  • Exact BookStack Version (Found in settings):BookStack v0.25.2
  • PHP Version: 7.3
  • Hosting Method (Nginx/Apache/Docker): Apache

Additional context
Add any other context about the problem here.

Originally created by @nekromoff on GitHub (Mar 26, 2019). **Describe the bug** A clear and concise description of what the bug is. **Steps To Reproduce** Steps to reproduce the behavior: 1. Use Social login (e.g. Google) to log in without previous registration 2. The system will tell you that such user is not connected to any social accounts. 3. Next try to register via social service / e.g. Google and the system will tell you that user already exists. **Expected behavior** Social registration via first-time login should be either automatic or if so, do not block actual registration from hapenning. **Screenshots** If applicable, add screenshots to help explain your problem. **Your Configuration (please complete the following information):** - Exact BookStack Version (Found in settings):BookStack v0.25.2 - PHP Version: 7.3 - Hosting Method (Nginx/Apache/Docker): Apache **Additional context** Add any other context about the problem here.
OVERLORD added the 🚪 Authentication label 2026-02-04 23:48:16 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Mar 28, 2019):

Hi @nekromoff,
Thanks for the concise issue info.

It sounds like you may want to use the third-party auth auto-registration option?

For example, setting GOOGLE_AUTO_REGISTER will allow login attempts using google to automatically register a user if the social account has not already been registered and if the social account email address is not already in use.

@ssddanbrown commented on GitHub (Mar 28, 2019): Hi @nekromoff, Thanks for the concise issue info. It sounds like you may want to use the [third-party auth auto-registration](https://www.bookstackapp.com/docs/admin/third-party-auth/#automatic-registration-email-confirmation) option? For example, setting `GOOGLE_AUTO_REGISTER` will allow login attempts using google to automatically register a user if the social account has not already been registered and if the social account email address is not already in use.
Author
Owner

@nekromoff commented on GitHub (Mar 28, 2019):

Great! Thanks for these options, I must have missed them or they were not
available when I first installed BookStack. I am going to try it with some
new user in next few days to see if that works, but I think we can close
this issue.

On Thu, Mar 28, 2019 at 8:46 PM Dan Brown notifications@github.com wrote:

Hi @nekromoff https://github.com/nekromoff,
Thanks for the concise issue info.

It sounds like you may want to use the third-party auth auto-registration
https://www.bookstackapp.com/docs/admin/third-party-auth/#automatic-registration-email-confirmation
option?

For example, setting GOOGLE_AUTO_REGISTER will allow login attempts using
google to automatically register a user if the social account has not
already been registered and if the social account email address is not
already in use.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/BookStackApp/BookStack/issues/1352#issuecomment-477744701,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIJ3zdwJox21JjYD10lZZ6wIBO1ym6K-ks5vbRwygaJpZM4cK_HC
.

@nekromoff commented on GitHub (Mar 28, 2019): Great! Thanks for these options, I must have missed them or they were not available when I first installed BookStack. I am going to try it with some new user in next few days to see if that works, but I think we can close this issue. On Thu, Mar 28, 2019 at 8:46 PM Dan Brown <notifications@github.com> wrote: > Hi @nekromoff <https://github.com/nekromoff>, > Thanks for the concise issue info. > > It sounds like you may want to use the third-party auth auto-registration > <https://www.bookstackapp.com/docs/admin/third-party-auth/#automatic-registration-email-confirmation> > option? > > For example, setting GOOGLE_AUTO_REGISTER will allow login attempts using > google to automatically register a user if the social account has not > already been registered and if the social account email address is not > already in use. > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/BookStackApp/BookStack/issues/1352#issuecomment-477744701>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AIJ3zdwJox21JjYD10lZZ6wIBO1ym6K-ks5vbRwygaJpZM4cK_HC> > . >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#1105