Skip to content
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

When authorizing, a GET request is sent instead of a POST. On iPhone #1443

Open
vital21 opened this issue Aug 26, 2024 · 3 comments
Open

When authorizing, a GET request is sent instead of a POST. On iPhone #1443

vital21 opened this issue Aug 26, 2024 · 3 comments

Comments

@vital21
Copy link

vital21 commented Aug 26, 2024

Hi @guillaume-chervet.

When I log into my application using my iPhone, my post request for the token turns into a get. So my page keeps reloading. Everything works on other devices.

I'm using iPhone 7 with iOS 15.8.3

My config
image

Here are the errors that are displayed in Safari using the extension. I don't have a MAC so this is the only way I can do it.
image
image

In the logs on the server you can also see that a get request is coming.

image (2)

How can I fix this problem?

@guillaume-chervet
Copy link
Contributor

Hi @vital21 , thank you for your feedback.
This is very strange. I do know how to investigate.
Do you have the same behavior if you desactivate the serviceworker mode?

@vital21
Copy link
Author

vital21 commented Aug 27, 2024

We commented out the line and added a forced replacement of the access token in requests. It helped.
Is disabling ServiceWorker the only solution, or are there other solutions to this problem?
//service_worker_relative_url: '/OidcServiceWorker.js',

@guillaume-chervet
Copy link
Contributor

Thank you @vital21 for your feedback.
This strange problem comes from ServiceWorkerMode.

Temporaly your can desactivate ServiceWorker on iphone by using service_worker_activate property.

Your may find more information here => https://github.com/AxaFrance/oidc-client/blob/main/packages/oidc-client/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants