Slack Requires Authorization At Every Login. #544

Closed
opened 2026-02-04 20:55:28 +03:00 by OVERLORD · 6 comments
Owner

Originally created by @obeardly on GitHub (Jan 10, 2018).

For Bug Reports

  • BookStack Version (Found in settings, Please don't put 'latest'): 0.18.5
  • PHP Version: PHP 5.6.30-0+deb8u1
  • MySQL Version: 5.5.58
Expected Behavior

When logging in with Slack, I expect Bookstack to ask for authorization once, and then retain the ability to login without reauthorizing.

Current Behavior

When logging in with Slack, it asks me to authorize the app every time.

Steps to Reproduce

With the aforementioned versions of BookStack, PHP, and MySQL, enable Slack login and attempt to login more than once. Requires you to reauthorize at every login.

Originally created by @obeardly on GitHub (Jan 10, 2018). ### For Bug Reports * BookStack Version *(Found in settings, Please don't put 'latest')*: 0.18.5 * PHP Version: PHP 5.6.30-0+deb8u1 * MySQL Version: 5.5.58 ##### Expected Behavior When logging in with Slack, I expect Bookstack to ask for authorization once, and then retain the ability to login without reauthorizing. ##### Current Behavior When logging in with Slack, it asks me to authorize the app every time. ##### Steps to Reproduce With the aforementioned versions of BookStack, PHP, and MySQL, enable Slack login and attempt to login more than once. Requires you to reauthorize at every login.
OVERLORD added the 🐛 Bug label 2026-02-04 20:55:28 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Jan 10, 2018):

Can confirm this but I've had a good dig into and and cannot find why this happens. Pretty sure it's some sort of change on slack's side but cannot work out why or what. BookStack appears to construct the auth URL as expected.

Have you noticed this for a while? Wondering if it's a temporary problem on slack's side.

@ssddanbrown commented on GitHub (Jan 10, 2018): Can confirm this but I've had a good dig into and and cannot find why this happens. Pretty sure it's some sort of change on slack's side but cannot work out why or what. BookStack appears to construct the auth URL as expected. Have you noticed this for a while? Wondering if it's a temporary problem on slack's side.
Author
Owner

@ssddanbrown commented on GitHub (Jan 10, 2018):

Just tried on another, Non-BookStack-related, app I manually set up slack auth on. Does that same thing.

@ssddanbrown commented on GitHub (Jan 10, 2018): Just tried on another, Non-BookStack-related, app I manually set up slack auth on. Does that same thing.
Author
Owner

@obeardly commented on GitHub (Jan 11, 2018):

It has done this since I installed. In the past, I have used Slack for
authentication on other apps, and it did not do this. However, as you said,
this may be a change on Slack's end. I'll look further into it.

On Wed, Jan 10, 2018 at 3:34 PM, Dan Brown notifications@github.com wrote:

Just tried on another, Non-BookStack-related, app I manually set up slack
auth on. Does that same thing.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/BookStackApp/BookStack/issues/659#issuecomment-356727913,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AMNjaEFbAKokAF8ooTz9S-FyCwkONbNsks5tJR63gaJpZM4RZZyZ
.

@obeardly commented on GitHub (Jan 11, 2018): It has done this since I installed. In the past, I have used Slack for authentication on other apps, and it did not do this. However, as you said, this may be a change on Slack's end. I'll look further into it. On Wed, Jan 10, 2018 at 3:34 PM, Dan Brown <notifications@github.com> wrote: > Just tried on another, Non-BookStack-related, app I manually set up slack > auth on. Does that same thing. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/BookStackApp/BookStack/issues/659#issuecomment-356727913>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AMNjaEFbAKokAF8ooTz9S-FyCwkONbNsks5tJR63gaJpZM4RZZyZ> > . >
Author
Owner

@shane-smith commented on GitHub (Feb 27, 2018):

Maybe this is relevant?

https://stackoverflow.com/questions/46094760/sign-in-with-slack-keeps-prompting-user-for-permission-every-time

Slack Sign-in does not cache user logins like other OAuth providers doe [sic], so if you want to avoid that users have to sign-in every time you have to cache user permissions in your app. e.g. by using cookies.

@shane-smith commented on GitHub (Feb 27, 2018): Maybe this is relevant? https://stackoverflow.com/questions/46094760/sign-in-with-slack-keeps-prompting-user-for-permission-every-time > Slack Sign-in does not cache user logins like other OAuth providers doe [sic], so if you want to avoid that users have to sign-in every time you have to cache user permissions in your app. e.g. by using cookies.
Author
Owner

@obeardly commented on GitHub (Feb 27, 2018):

That definitely seems relevant. The question is now, how do we enable cookies in BookStack?

@obeardly commented on GitHub (Feb 27, 2018): That definitely seems relevant. The question is now, how do we enable cookies in BookStack?
Author
Owner

@ssddanbrown commented on GitHub (Nov 15, 2021):

Just re-reviewing this, based upon the response from slack in this stackoverflow question it appears the above text was an incorrect detail in the documentation.

I don't think there's anything we can do about this so I'll close this off.

Note, Slack now advise using their more recent OIDC for authentication flow, which we now support as a primary authentication mechanism. I'd imagine this would not have this issue.

@ssddanbrown commented on GitHub (Nov 15, 2021): Just re-reviewing this, based upon the response from slack [in this stackoverflow question](https://stackoverflow.com/questions/58478994/slack-oauth-automatically-authorize-user-if-user-had-already-authorized-app?noredirect=1&lq=1) it appears the above text was an incorrect detail in the documentation. I don't think there's anything we can do about this so I'll close this off. Note, Slack now advise using their more recent OIDC for authentication flow, which we now support as a primary authentication mechanism. I'd imagine this would not have this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#544