streamlit-keycloak icon indicating copy to clipboard operation
streamlit-keycloak copied to clipboard

BUG :authenticated has not changed

Open HuaYunFX opened this issue 1 year ago • 21 comments

Hello developers, I found a bug. When you click Login, the authenticated status does not change after the login is successful, as shown in the following figure recording After checking, it is found that the authenticated variable is still false after successful login! image

HuaYunFX avatar Jul 22 '24 06:07 HuaYunFX

I have the same issue. I guess this why neither the sign up button does not show but the page still remains blank for me.

Alex-Dee avatar Jul 29 '24 09:07 Alex-Dee

Switch the version key-cloak to 21.0.0

HuaYunFX avatar Aug 02 '24 01:08 HuaYunFX

i have the same issue, with all verisons of Keycloak i tried 20.0.1, 21.0.0, latest. Do you found another fix?

jesse1901 avatar Aug 07 '24 12:08 jesse1901

I have the identical issue. And I was so excited for this package. I'm using:

quay.io/keycloak/keycloak:25.0.4 streamlit 1.35.0

If I look in admin console, the user is successfully logged in. Oddly enough, if I refresh the page and go to dev tools -> network tab, the token is there with necessary credentials

brdemorin avatar Aug 23 '24 01:08 brdemorin

I have found the solution: Keycloak itself blocked the request coming from Streamlit (CORS error). So we should just add proper origin to Keycloak as below. You can inspect the issue going to F12 in your browser, Network tab. image

Pr1ncee avatar Sep 03 '24 14:09 Pr1ncee

I have found the solution: Keycloak itself blocked the request coming from Streamlit (CORS error). So we should just add proper origin to Keycloak as below. You can inspect the issue going to F12 in your browser, Network tab. image

Isn't that the very first thing written in README.md? Getting started with Keycloak

CHerSun avatar Sep 04 '24 13:09 CHerSun

I have found the solution: Keycloak itself blocked the request coming from Streamlit (CORS error). So we should just add proper origin to Keycloak as below. You can inspect the issue going to F12 in your browser, Network tab. image

Isn't that the very first thing written in README.md? Getting started with Keycloak

Exactly, but in my case I've also added the second origin with the specified port and it started working

Pr1ncee avatar Sep 06 '24 10:09 Pr1ncee

Switch the version key-cloak to 21.0.0

You can fall back only to 24.0.5

DEsimas avatar Sep 06 '24 14:09 DEsimas

Even after setting weborigins and valid redirect URLs in keycloak it's not working. I've tested every flow option (implicit, hybrid, code). It just works in microsoft Edge (in Chrome, Firefox it fails). Allways getting NS_ERROR_CSP_FRAME_ANCESTOR_VIOLATION - see below

streamlit-keycloak-fail

Kraego avatar Oct 17 '24 09:10 Kraego

Even after setting weborigins and valid redirect URLs in keycloak it's not working. I've tested every flow option (implicit, hybrid, code). It just works in microsoft Edge (in Chrome, Firefox it fails). Allways getting NS_ERROR_CSP_FRAME_ANCESTOR_VIOLATION - see below

streamlit-keycloak-fail

As for me it does not work in firefox and incognito mode in any browser. You can try to set "checkLoginIframe": False option

DEsimas avatar Oct 17 '24 22:10 DEsimas

@DEsimas I‘ve already tried to disable the iframe check. Still not working, but thank you

Kraego avatar Oct 22 '24 15:10 Kraego

Keycloak.svelte:98 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'error') at create_catch_block

andrec84j avatar Nov 13 '24 22:11 andrec84j

Keycloak.svelte:98 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'error') at create_catch_block

+1 we are also facing same issue

pallakartheekreddy avatar Nov 19 '24 05:11 pallakartheekreddy

Keycloak.svelte:98 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'error') at create_catch_block

I am facing the same issue.

jswelling avatar Nov 20 '24 22:11 jswelling

Keycloak.svelte:98 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'error') at create_catch_block

I am facing the same issue.

me too

ghost avatar Nov 26 '24 11:11 ghost

Please, any solution to this problem?

andrec84j avatar Dec 02 '24 16:12 andrec84j

I am facing the same issue. Keycloak 24.0.3

maxime-4950 avatar Dec 04 '24 15:12 maxime-4950

Keycloak.svelte:98 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'error') at create_catch_block

I am facing the same issue.

me too

me too

pszuster avatar Jan 08 '25 20:01 pszuster

Keycloak.svelte:98 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'error') at create_catch_block

I am facing the same issue.

me too

me too

I am bumping into this issue as well, with this error. Has anyone found a workaround or solution?

DrSqua avatar Mar 01 '25 21:03 DrSqua

Let me know if anyone found a solution for this issue. I am too facing the same one

287611 avatar Mar 25 '25 13:03 287611

Same here. Up.

fgiuba avatar Jun 13 '25 09:06 fgiuba