# Problem on SSO Login

**URL:** https://meta.discourse.org/t/problem-on-sso-login/229920
**Category:** SSO
**Created:** [June 14, 2022, 12:25pm UTC](https://meta.discourse.org/t/problem-on-sso-login/229920 "2022-06-14T12:25:53Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![yasham07](https://avatars.discourse-cdn.com/v4/letter/y/4af34b/32.png) [@yasham07](https://meta.discourse.org/u/yasham07)
#### Post date: [June 14, 2022, 6:20pm UTC](https://meta.discourse.org/t/problem-on-sso-login/229920/4 "2022-06-14T18:20:52Z")

</div>

> [@pfaffman](#):
>
> If you **don’t** want to allow anonymous access to your site then you **do** want to enable `login_requred`.

yes I have to enable **login required** for disallowed anonymous access.  
I am explaining again  
The following flow is executed for my website when I enable **SSO login** and set everything up for **SSO login**

1. this is my main website. here a one community button ,when user click this button it will call [mywebsite.com](http://forum.mywebsite.com/login)  

2. [mywebsite.com](http://forum.mywebsite.com/login) call my community(discourse community) website login page. then user who logged in main website is automatically logged as in community website(when I disabled **login required** setting of community website). But problem is that when I enable **login required** then login page does not call automatically. I have to click login button manually then It will logged the community page.  

So I need some way to call the login button(or page) automatically without disabling **login required** settings.

This is official SSO Documentation link

> [@Setup DiscourseConnect - Official Single-Sign-On for Discourse (sso)](https://meta.discourse.org/t/discourseconnect-official-single-sign-on-for-discourse-sso/13045):
>
> [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) is a core Discourse feature that allows you to configure “Single Sign-On (SSO)” to completely outsource all user registration and login from Discourse to another site. Offered to our [pro, business and enterprise hosting customers](https://discourse.org/pricing). information_source (Feb 2021) ‘[Discourse SSO](https://meta.discourse.org/t/13045?silent=true)’ is now ‘[DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)’. If you are running an old version of Discourse, the settings below will be named sso\_... rather than discourse\_connect\_... The Problem Many sites wishing to integrate wit…

---

_[View the full topic](https://meta.discourse.org/t/problem-on-sso-login/229920)._
