-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Token Request Error in Safari #1474
Comments
@synapxe-siang13 did you manage to solve this issue? We noticed an extra _default attached to the code verifier param which seems also been attached in @synapxe-siang13 request |
@baesslerpa not able to resolve. @guillaume-chervet Can help to verify this issue? |
Hi @synapxe-siang13 , do you have more details about your issue. For example your configuration and service worker configuration and some code? |
@guillaume-chervet Hi, the issue happened randomly in Safari. From what I have observed, this issue does not occur in Chrome. You may verify this issue with https://black-rock-0dc6b0d03.1.azurestaticapps.net/profile-secure-component, I tested with the above demo URL, this issue happened as well. But I am not sure the configuration with your demo URL. |
function App() {
const config: OidcConfiguration = {
client_id: import.meta.env.VITE_CLIENT_ID,
redirect_uri: import.meta.env.VITE_REDIRECT_URI,
silent_redirect_uri: import.meta.env.VITE_SILENT_REDIRECT_URI,
scope: "openid profile email ecapi offline_access",
authority: import.meta.env.VITE_AUTHORITY,
demonstrating_proof_of_possession: false,
service_worker_relative_url: `/OidcServiceWorker.js?v=${axaPackage.version}`,
service_worker_only: false,
};
return (
<>
<HelmetProvider>
<OidcProvider
configuration={config}>
<RouterProvider router={router} />
</OidcProvider>
</HelmetProvider>
</>
);
} Service worker files are not modified
this is the configuration we are running. |
function PageError() {
// show loader while ios bug is not fixed
useEffect(() => {
setTimeout(() => {
console.log("navigating to root");
window.location.href = "/";
}, 1000);
}, []);
return (
<div className="w-screen h-screen flex items-center justify-center flex-col">
<Spinner />
</div>
);
} this works as a temporary fix |
I have missed the message with the extra default @baesslerpa @synapxe-siang13 , i have may be an idea . I will take a look next week. |
@guillaume-chervet happens on both platforms, I even had this bug once on chromium based browser (Arc) |
@guillaume-chervet Hi, are you checking on this issue? |
Hi @synapxe-siang13 what is your oidc trusted domains configuration ? I do not have any problem with safari in production on my side. |
@guillaume-chervet I tested with your demo https://black-rock-0dc6b0d03.1.azurestaticapps.net/profile-secure-component with Safari, the issue came out randomly actually. I think it may not related to Oidc trusted domains configuration. |
@guillaume-chervet Using latest version of library will have the same issue as well |
Hi @synapxe-siang13 do you have a way to debug or give me again more information ? Whithout any mac I cannot debug or test with it. |
@guillaume-chervet Hi, the issue we tested seems to be happening in the Mac Safari browser or IOS Safari browser. You may replicate by browsing to this link https://black-rock-0dc6b0d03.1.azurestaticapps.net/profile-secure-component and login. If you not manage to see any error after login, you will need to logout again. After that you need to browse to this link https://black-rock-0dc6b0d03.1.azurestaticapps.net/profile-secure-component and login again. Repeat the above process, the error authentication will come out randomly. |
Issue and Steps to Reproduce
Random error when using Safari browser to try the https://black-rock-0dc6b0d03.1.azurestaticapps.net/profile-secure-component
Step to produce
Versions
7.22.32
Screenshots
Expected
No authentication error
Actual
Authentication error in service worker mode.
Additional Details
The text was updated successfully, but these errors were encountered: