Users are unable to create a new account using an oAuth provider (slack) #3343
Replies: 10 comments
-
Did you enable the "Allow Self-Registration" option in the Slack configuration in the admin area? |
Beta Was this translation helpful? Give feedback.
-
Yes, first I only did it for slack. But then it was impossible to get to the register link. So then I enabled it for local. But then I noticed that clicking on that link only shows the page to add a user for local not for slack. |
Beta Was this translation helpful? Give feedback.
-
There's no registration link for OAuth providers, that's what the Allow Self-Registration option is for. Once the login succeeds with Slack, the account will be automatically created in Wiki.js. |
Beta Was this translation helpful? Give feedback.
-
Ok, then the issue is perhaps different. I get to this: And it then redirects me to this: Could this be a configuration error on my side? |
Beta Was this translation helpful? Give feedback.
-
You need to assign the user to a group (which you can do automatically by configuring the Allow Self-Registration option). That group must have access to that page. Make sure the |
Beta Was this translation helpful? Give feedback.
-
I did indeed configure a group. The page (I assume) is just the home page (currently that's the only page there is). |
Beta Was this translation helpful? Give feedback.
-
I didnt create a page rule... let me check. |
Beta Was this translation helpful? Give feedback.
-
Ok I just changed it to the guest group, instead of the group I manually created. I get the same error. |
Beta Was this translation helpful? Give feedback.
-
Also note; no users are actually created when looking at the users tab in the admin area |
Beta Was this translation helpful? Give feedback.
-
FWIW, seeing this now on that latest release candidate with the Auth0 provider. Configured it so self-registration is available, created the app in Auth0, and can see in the Auth0 dashboard that logins are successful. However, on the wiki side, I get an "Unauthorized" page and the server response is a 500. This is for users that exist in Auth0 trying to log into the Wiki.js site. Happy to share more details, but unforunately nothing interesting in the console logs / HTTP response and I'm not sure where to look on the server for more detailed logs. |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
The only way to see the "create account" link that allows account creation for the oAuth provider (in this case slack) is to click on the logo of that provider. However, when a user clicks on that logo it immediately tries to log in with that provider, which ultimately fails because the user doesn't exist. A catch-22. Clicking on the create account link only creates local accounts.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Users want to create an account using an oAuth provider
Host Info (please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions