-
Notifications
You must be signed in to change notification settings - Fork 14
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
Switch to OAuth 2 #71
Comments
Given updated announcement openstreetmap/operations#867 (comment) saying turning off OAuth 1.0a will begin in about 2 weeks, brownouts will start at May 1st, 2024 and support will be completely shut down at June 1st, 2024; I wanted to ask @Zverik is the plan for Level0 to be updated by then? I love using it, and would hate to see it stop working. Is help needed? |
Currently the main blocker is that the server Level0's on has PHP 5.5 which doesn't support OAuth2 out of the box. Upgrading the server is long overdue (OS is nine years obsolete), so the plan is that. But I want to do it closer to April, to have Ubuntu LTS 24 and not think of upgrading for another six years. |
Any news on this? Registration of OAuth 1 applications has been disabled already. |
Ubuntu 24.04 LTS Noble Numbat has just been released yesterday 25. Apr 2024., so that prerequisite at least should be met now. |
Yes, the next prerequisite would be me releasing Every Door 5.0 (hopefully next week), and then I can start moving everything to a new server and updating the libraries to switch to OAuth2. |
Reminder: Ouath 1.0a is scheduled to be shutdown next weekend (June 1st 2024), and https://level0.osmz.ru still seems to be using it. (said he, with just a barely detectable panic in his voice 🥲 ) Update: It is already failing for me (probably due to "May 1st, 2024: Sysadmins will start brownouts to find applications that are still using OAuth 1.0a or HTTP Basic Auth") with:
|
I made edits using level0 20 minutes ago, but now I can no longer use it, and I cannot log in again after logging out.
|
Well I guess that's what they mean by brown-outs :) I was distracted with releasing Every Door 5.1, but will try moving Level0 to a new server next weekend. Meaning it will be offline for a few days. Idk, we'll see. |
Please let us know if there is anything we can do to help with, e.g. testing the necessary changes! |
Code porting status: learned how Composer works and how it's deployed to production, almost rewrote OAuth logging in. The codebase for level0 is awful, I want to punch the developer who wrote this. Frankly the entire Level0 needs to be rewritten in JavaScript + local storage. |
That might be interesting idea for an web app (even PWA), but (for me at least) one of the main advantages of Level0 is precisely because it does not require JS. |
Done. |
Thank you very much! The official instance seems to work well. However, it seems composer doesn't install all dependencies. I needed to manually install |
@mueschel Which operating system and PHP version are you using? |
@mueschel yeah, those are OS-level dependencies, not composer's. You can see the full list of packages I install in my ansible role. |
So. I have added platform dependencies to |
Switch to OAuth 2 from HTTP Basic Auth and OAuth 1.0a. They are being deprecated.
See openstreetmap/operations#867
Note,
api.openstreetmap.org
API url currently can not do OAuth 2 handshake. See openstreetmap/operations#951 (comment)You can split the
www.
base URL andapi.
API url. See osmlab/osm-auth#123 (comment)cc: @Zverik
The text was updated successfully, but these errors were encountered: