chillerlan / php-oauth-providers

OAuth 1/2 Provider implementations for chillerlan/php-oauth-core. PHP 8.1+
https://smiley.codes/oauth/
MIT License
4 stars 0 forks source link

Switch to OAuth 2 for OpenStreetMap provider #2

Open danieldegroot2 opened 1 year ago

danieldegroot2 commented 1 year ago

Switch to OAuth 2 from HTTP Basic Auth and OAuth 1.0a. They are being deprecated. See https://github.com/openstreetmap/operations/issues/867

Note, api.openstreetmap.org API url currently can not do OAuth 2 handshake. See https://github.com/openstreetmap/operations/issues/951#issuecomment-1748717154 You can split the www. base URL and api. API url. See https://github.com/osmlab/osm-auth/pull/123#issuecomment-1777330094

codemasher commented 1 year ago

Hey, thanks for the notice! I'll look into this as soon as i can, but it might take a while to end up in a release as there are further changes down the (package) line I'll have to clean up first.

danieldegroot2 commented 1 year ago

No problem. :-)

codemasher commented 8 months ago

OSM OAuth2 support has been added in https://github.com/chillerlan/php-oauth-providers/commit/4647553f700f581fda3fdd0114ba0eedead6e956. I'll leave the OAuth1 client for now as it is still active.