diff --git a/.idea/workspace.xml b/.idea/workspace.xml index dfa1436..6683b02 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,5 +1,51 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1603741123382 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index e9b853e..fe45a35 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,29 @@ > OpenStreetMap strategy for Überauth. _Note_: Sessions are required for this strategy. +## Notes + +avoir un compte OSM et créer son app sur OSM ici +https://www.openstreetmap.org/user/username/oauth_clients + +URL du jeton de requête : + +https://www.openstreetmap.org/oauth/request_token + +URL du jeton d’accès : + +https://www.openstreetmap.org/oauth/access_token + +URL d’autorisation : + +https://www.openstreetmap.org/oauth/authorize + +Demande les permissions suivantes à l’utilisateur : + +* lire les préférences de l’utilisateur + +Nous prenons en charge les signatures HMAC-SHA1 (recommandé) et RSA-SHA1. + ## Installation @@ -75,5 +98,5 @@ As noted when registering your application on the OpenStreetMap Developer site, ## License -Please see [LICENSE](https://github.com/ueberauth/ueberauth_OpenStreetMap/blob/master/LICENSE) for licensing details. +Please see [LICENSE](https://forge.tedomum.net/tykayn/ueberauth_openstreetmap/blob/master/LICENSE) for licensing details. diff --git a/lib/ueberauth/strategy/twitter/internal.ex b/lib/ueberauth/strategy/openstreetmap/internal.ex similarity index 100% rename from lib/ueberauth/strategy/twitter/internal.ex rename to lib/ueberauth/strategy/openstreetmap/internal.ex diff --git a/lib/ueberauth/strategy/twitter/oauth.ex b/lib/ueberauth/strategy/openstreetmap/oauth.ex similarity index 98% rename from lib/ueberauth/strategy/twitter/oauth.ex rename to lib/ueberauth/strategy/openstreetmap/oauth.ex index 88bdf75..363d0a0 100644 --- a/lib/ueberauth/strategy/twitter/oauth.ex +++ b/lib/ueberauth/strategy/openstreetmap/oauth.ex @@ -15,7 +15,7 @@ defmodule Ueberauth.Strategy.OpenStreetMap.OAuth do @defaults [access_token: "/oauth/access_token", authorize_url: "/oauth/authorize", request_token: "/oauth/request_token", - site: "https://api.OpenStreetMap.com"] + site: "https://www.openstreetmap.org"] defmodule ApiError do @moduledoc "Raised on OAuth API errors." diff --git a/lib/ueberauth_twitter.ex b/lib/ueberauth_openstreetmap.ex similarity index 100% rename from lib/ueberauth_twitter.ex rename to lib/ueberauth_openstreetmap.ex diff --git a/mix.exs b/mix.exs index ea0dfa1..4ed8a30 100644 --- a/mix.exs +++ b/mix.exs @@ -1,8 +1,8 @@ defmodule UeberauthOpenStreetMap.Mixfile do use Mix.Project - @version "0.3.0" - @url "https://github.com/ueberauth/ueberauth_OpenStreetMap" + @version "0.1.0" + @url "https://forge.tedomum.net/tykayn/ueberauth_openstreetmap" def project do [app: :ueberauth_OpenStreetMap, diff --git a/test/ueber_twitter_test.exs b/test/ueber_openstreetmap_test.exs similarity index 100% rename from test/ueber_twitter_test.exs rename to test/ueber_openstreetmap_test.exs