The discussion explores the differences between SSO and OAuth2 in Discourse. remy_dev initiates the conversation, clarifying that while both are authentication methods, they serve different purposes. Falco explains that SSO is the sole login method and provides richer user data, whereas OAuth2 is one of multiple login options. leog seeks to integrate OAuth2 with SSO, prompting sam to note that OAuth2 is less feature-rich than SSO. supermathie adds that disabling all other login methods bypasses the login selection screen. leog highlights the need for a seamless SSO flow without user account creation prompts. Falco points out a bug where OAuth2 users still face a login prompt despite having only one method. sam acknowledges the bug, and david later confirms the fix, implementing automatic redirection to the external auth page when only one method is enabled and local logins are disabled. consideRatio and Joralf express interest in group information and the updated behavior, respectively.
I’m working on a website with django CMS.
I would like to link the user accounts of my site to discourse.
In the first sept, I wish understand the différence between SSO and Oauth2 I thought it was the same thing, but there are two tools, so it can’t be the same thing.
Thanks
Jumping in as I also need some clarifications about this.
Is there any way I can enable SSO with OAuth2? My identity provider has all the configuration to set up OAuth2, like oauth2 client id, oauth2 client secret, oauth2 authorize url, oauth2 token url, oauth2 user json url, information paths to the correspondent piece of data in the returned json. But I can’t seem to enable SSO to rely on OAuth2.
I believe we had a customer with a single oAuth 2 provider, so we forced it through rather than making the user pick from a menu of .. one item .. as I recall @sam worked on it but I may be mistaken.
Ah right! When login in that happens, I kept thinking about creating a user, which after OAuth2 comes a user creation dialogs shows up. I guess I want the SSO flow as ideally, the user should not need to create an account again.
I will need to see what can I do. Auth0, the identity provider I use, does not seem to have a clear path to hook up SSO in a straightforward way.
I definitely want to get this improved but it is not slotted quite yet. @david do you want to take this TODO? Not urgent but some time in the next 6 months.
Also, something I’m missing for OAuth2 / OIDC as compared to SSO is the ability to utilize group information. If I get to make the bridge, ill add that ability in the bridge by passing such info along.
@sam Есть ли какие-то обновления по этому вопросу? Похоже, что даже при наличии только одного метода входа вам всё равно нужно нажать кнопку «Войти», чтобы получить доступ к форуму. Я считаю, что SSO — это альтернатива, но она требует дополнительного уровня в вашей инфраструктуре, что усложняет систему, поэтому я сомневаюсь, стоит ли выбирать этот вариант.
Если включён только один внешний аутентификатор и локальные входы отключены и для сайта требуется вход, то пользователи будут перенаправляться сразу на страницу внешней аутентификации. Это полностью соответствует реализации нашего нативного SSO в Discourse.
Я не могу придумать причины, по которой кто-то не захотел бы этого, поэтому теперь это поведение по умолчанию.