AWS Cognito : [amazoncognito.com refused to connect]

Whats Up Streamlit Family.

I have set up user authentication through cognito and it works perfectly.

However when I deploy my app via streamlit cloud the signin/signup links return the error
[ amazoncognito.com refused to connect.]

But if i copy the link and paste it in my browser it works. Any thoughts on how to fix this?

Hey @Syrup,

Thanks for sharing your question! Can you share a link to your GitHub repo and/or a code snippet so we can try to reproduce this behavior?

Thanks for the response I posted the code below

‘’’
#SignIn Button That Brings User Back To Homepage
sign_in_to_homepage = sidebar.markdown(‘’’

Sign In

‘’', unsafe_allow_html=True)

‘’’

#SignIn Button That Brings User Back To Homepage
        sign_in_to_homepage = sidebar.markdown(''' <a target="_self" href="https://catalyst-app.auth.us-east-2.amazoncognito.com/oauth2/authorize?response_type=code&client_id=1akri4eieduipi7j8beohroteu&scope=email+openid+phone&redirect_uri=https%3A%2F%2Fcatalyst.streamlit.app">
                            <button>
                                Sign In
                                </button>
                            </a>''', unsafe_allow_html=True)

The link works fine when i run this locally and if i just copy and paste the link in my browser. (Even the link works here in the button above)However whenever I click on this button via the app thats deployed running via the streamlit cloud I get the error message below from my browser

the app url in the streamit cloud that is not working is: https://catalyst.streamlit.app/

I posted the code above