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

Can't open Lufthansa URL directly and update it #508

Open
jonas-w opened this issue Oct 28, 2023 · 2 comments
Open

Can't open Lufthansa URL directly and update it #508

jonas-w opened this issue Oct 28, 2023 · 2 comments

Comments

@jonas-w
Copy link

jonas-w commented Oct 28, 2023

I needed to download the pkpass file first with my browser, to be able to open the file. Opening the URL directly with PassAndroid didn't work, it just said that the file is not a pkpass file. The same happens when pressing the refresh button, after I've manually imported it.

I tried it with curl and got a 403 response back from akamai, but spoofing the user agent to my firefox on android user agent returned the pkpass file to curl.

Seemingly some user agents like curl are blocked, would it be possible to spoof the user agent in the app?

@ligi
Copy link
Owner

ligi commented Oct 29, 2023

Thanks for the detailed report. Yes we can set a user-agent in okhttp. What is the URL it should be changed for? Also could you test the fix as I could not test the impact of a change.

@jonas-w
Copy link
Author

jonas-w commented Oct 29, 2023

Thank you, the link is
https://once.lufthansa.com/download/Checkin/Documents/pkpass/{UUID4}.pkpass

Obviously, {UUID4} is an uuid4 (e.g. 6ab69812-c140-42f7-af91-92e4ff3223ec), but the real one omitted for privacy.

Though I don't know if there are more URLs, as this one contains "Checkin", which makes sense as I received the link after check in.

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