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

malformed JWTs on iPhone #4491

Open
john-gold opened this issue Nov 18, 2024 · 0 comments
Open

malformed JWTs on iPhone #4491

john-gold opened this issue Nov 18, 2024 · 0 comments

Comments

@john-gold
Copy link

john-gold commented Nov 18, 2024

Hello,

I tried different browsers (Safari, Firefox) and the Cloud Personnel Cozy app from the AppStore to connect my iPhone (iPhone 13 with iOS 18.1) with my local cozy-stack (v1.6.31). None of them seem to work, while the access via PC (Linux & Windows with different browsers) has no issues.

It seems that the frontend/js-scripts are generating an invalid/malformed JWT. After providing my instance/user password (when using a browser) or the e-mailed confirmation code (when using the app) I see the following error messages in the log. On the iPhone is just a black screen displayed.

INFO[0029] New connection from XXX.XXX.X.X at 2024-11-18 11:06:12.122833047 +0100 CET m=+29.627055177 (password)  domain=dev.cozy.local nspace=loginaudit
time=2024-11-18T11:06:12+01:00	status=200	method=POST	host=dev.cozy.local	uri=/auth/login	bytes_out=43
time=2024-11-18T11:06:12+01:00	status=200	method=GET	host=dev.cozy.local	uri=/assets/icons/check.svg	bytes_out=273
INFO[0030] Cannot find asset                             context=dev domain=dev.cozy.local name=/images/default-wallpaper.jpg nspace=assets
time=2024-11-18T11:06:12+01:00	status=200	method=GET	host=home.dev.cozy.local	uri=/	bytes_out=3091
time=2024-11-18T11:06:13+01:00	status=200	method=GET	host=home.dev.cozy.local	uri=/vendors-home.7403737af06f51ba0d38.0.min.css	bytes_out=233016
time=2024-11-18T11:06:13+01:00	status=200	method=GET	host=dev.cozy.local	uri=/assets/manifest.5495261505.webmanifest	bytes_out=180
time=2024-11-18T11:06:13+01:00	status=200	method=GET	host=dev.cozy.local	uri=/assets/styles/theme.b95be94612.css	bytes_out=39
time=2024-11-18T11:06:13+01:00	status=200	method=GET	host=dev.cozy.local	uri=/assets/fonts/fonts.css	bytes_out=347
time=2024-11-18T11:06:13+01:00	status=200	method=GET	host=home.dev.cozy.local	uri=/app/home.c20ff5dd16c0f6414178.js	bytes_out=198488
time=2024-11-18T11:06:13+01:00	status=200	method=GET	host=home.dev.cozy.local	uri=/app-home.feb73f802307f228b84d.min.css	bytes_out=6993
time=2024-11-18T11:06:13+01:00	status=200	method=GET	host=home.dev.cozy.local	uri=/vendors/home.c3a374081cd1e21ea437.js	bytes_out=5443582
time=2024-11-18T11:06:15+01:00	status=204	method=OPTIONS	host=dev.cozy.local	uri=/settings/instance	bytes_out=0
time=2024-11-18T11:06:15+01:00	status=204	method=OPTIONS	host=dev.cozy.local	uri=/files/downloads?Path=%2FSettings%2FHome%2FWallpaper.jpg	bytes_out=0
ERRO[0033] GET /settings/instance code=400, message=Invalid JWT token  domain=dev.cozy.local nspace=http
ERRO[0033] GET /settings/instance code=400, message=Invalid JWT token  domain=dev.cozy.local nspace=http

The "Invalid JWT token"-errors keep repeating infinitely until I abort further requests via closing the app or browser tab on the iPhone.

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

1 participant