InseeFrLab / sspcloud

Issue tracker pour la plateforme sspcloud : https://www.sspcloud.fr/
4 stars 2 forks source link

Authentication flow issue in Edge 95 on Windows NT 6.2 #3

Closed ghost closed 3 years ago

ghost commented 3 years ago

Hello,

There was an issue with authentication on the SSP Cloud, when trying to log in in the datalab.sspcloud.fr. This happened in the first part of the flow, without displaying any login page. I was able to replicate it using the browser Edge 95 on Windows NT 6.2. Had no issues using Chrome 95 on Windows NT 6.2.

Error log

Navegou para https://auth.lab.sspcloud.fr/auth/realms/sspcloud/protocol/openid-connect/auth?client_id=onyxia&redirect_uri=https%3A%2F%2Fdatalab.sspcloud.fr%2Fhome&state=df03a7f1-88a7-4dba-928f-a7bfbf322bb8&response_mode=query&response_type=code&scope=openid&nonce=a252c67b-e993-4729-8da7-67c9c067bf48&powerhooks_useGlobalState_isDarkModeEnabled=%5Bfalse%5D&powerhooks_useGlobalState_lastDelayedTime=%5B1635352432379%5D&powerhooks_useGlobalState_kcLanguageTag=%5B%22pt%22%5D&powerhooks_useGlobalState_isCollapsed=%5Bfalse%5D&powerhooks_useGlobalState_lng=%5B%22pt%22%5D&palette=onyxia&title=SSP%20Cloud
react-dom.production.min.js:216 

TypeError: Cannot read properties of undefined (reading 'doLogIn')
    at useKcMessage.tsx:29
    at useKcMessage.tsx:47
    at Login.tsx:200
    at sa (react-dom.production.min.js:157)
    at Va (react-dom.production.min.js:180)
    at Ua (react-dom.production.min.js:178)
    at Ba (react-dom.production.min.js:177)
    at Ys (react-dom.production.min.js:274)
    at Tc (react-dom.production.min.js:250)
    at Ec (react-dom.production.min.js:250)

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'doLogIn')
    at useKcMessage.tsx:29
    at useKcMessage.tsx:47
    at Login.tsx:200
    at sa (react-dom.production.min.js:157)
    at Va (react-dom.production.min.js:180)
    at Ua (react-dom.production.min.js:178)
    at Ba (react-dom.production.min.js:177)
    at Ys (react-dom.production.min.js:274)
    at Tc (react-dom.production.min.js:250)
    at Ec (react-dom.production.min.js:250)

Access to manifest at 'https://datalab.sspcloud.fr/favicon_package/site.webmanifest' from origin 'https://auth.lab.sspcloud.fr' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
datalab.sspcloud.fr/favicon_package/site.webmanifest:1 

GET https://datalab.sspcloud.fr/favicon_package/site.webmanifest net::ERR_FAILED 200
content.js:94 Content Server Web Browser Extension: not applicable for href='https://auth.lab.sspcloud.fr/auth/realms/sspcloud/protocol/openid-connect/auth?client_id=onyxia&redirect_uri=https%3A%2F%2Fdatalab.sspcloud.fr%2Fhome&state=df03a7f1-88a7-4dba-928f-a7bfbf322bb8&response_mode=query&response_type=code&scope=openid&nonce=a252c67b-e993-4729-8da7-67c9c067bf48'; 

Thank you in advance

garronej commented 3 years ago

Hi @luismferreiradeloitte,
Thank you for reporting. This is an issue caused by Keycloakify. I've opened it there

On a more general note, welcome to the project. I will be spending the day writing technical documentation to smoothen your onboarding. Maybe we could schedule a call and do a hands-on together.

I'll keep you updated,

Best,

garronej commented 3 years ago

Hi @luismferreiradeloitte,
I can't figure out what might have appended here.
Could you give me a hand and run:
console.log([].find(()=> false) === undefined)
image

in the browser, you had this error with and tel me what it gives you.

Could you also do navigator.language ?

image

Much appreciated

ghost commented 3 years ago

Hi @garronej ,

Thank you for your swift reply, and the documentation addition. It would be great to have a closer point of contact with you, we should schedule a call.

About the run, do you believe it's because of the navigator default language? image

Thank you

garronej commented 3 years ago

@luismferreiradeloitte

Português is supposed to be supported. The bug has never been reported before. I spend two hours trying to figure out what might have happened but it's still a mystery to me.
Can you still reproduce the bug? I really would like to figure this out. Several companies relies on Keycloakify for their login, it's a big deal if it randomly break on some browser, with some language.

It would be great to have a closer point of contact

Sure thing, what do you suggest? I can invite any of you on my private Discord server. Maybe you have a better suggestion?

Best regard

garronej commented 3 years ago

Ok, I think I got it, the bug was in Onyxia-web and carried over to Keycloakify. Thank you for reporting!

garronej commented 3 years ago

@olevitt would you give me the access to close issues here plz?

olevitt commented 3 years ago

Done