Skip to content

Switch to OAuth 2 #71

Closed
Closed

Description

@danieldegroot2

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 and api. API url. See osmlab/osm-auth#123 (comment)

cc: @Zverik

Activity

  1. mnalis commented on Feb 15, 2024

    @mnalis

    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?

  2. Zverik commented on Feb 17, 2024

    @Zverik
    Owner

    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.

  3. sikmir commented on Apr 25, 2024

    @sikmir

    Any news on this? Registration of OAuth 1 applications has been disabled already.

  4. mnalis commented on Apr 25, 2024

    @mnalis

    Ubuntu 24.04 LTS Noble Numbat has just been released yesterday 25. Apr 2024., so that prerequisite at least should be met now.

  5. Zverik commented on Apr 26, 2024

    @Zverik
    Owner

    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.

  6. mnalis commented on May 26, 2024

    @mnalis

    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:

    OAuth error 401 at stage "create": Couldn't authenticate you.
    
  7. LaoshuBaby commented on May 27, 2024

    @LaoshuBaby

    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.

    I wanna to know if I got the last changeset made with level0

  8. Zverik commented on May 27, 2024

    @Zverik
    Owner

    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.

  9. mueschel commented on Jun 7, 2024

    @mueschel

    Please let us know if there is anything we can do to help with, e.g. testing the necessary changes!

  10. Zverik commented on Jun 10, 2024

    @Zverik
    Owner

    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.

  11. mnalis commented on Jun 10, 2024

    @mnalis

    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.

  12. Zverik commented on Jun 23, 2024

    @Zverik
    Owner

    Done.

  13. mueschel commented on Jun 23, 2024

    @mueschel

    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
    php-dom, php-zip and php-sqlite3
    The first two composer itself complained about, the last one showed up as an error in the server log.

  14. mtmail commented on Jun 23, 2024

    @mtmail
    Contributor

    @mueschel Which operating system and PHP version are you using?

  15. Zverik commented on Jun 24, 2024

    @Zverik
    Owner

    @mueschel yeah, those are OS-level dependencies, not composer's. You can see the full list of packages I install in my ansible role. php-zip should not be required, although I don't know exactly.

  16. Zverik commented on Jun 24, 2024

    @Zverik
    Owner

    So. I have added platform dependencies to composer.json. php-zip is required by dev dependencies, so that's on composer. I use --no-dev for production obviously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions