From 06b96b48d293837b06bdfd9c98fe6e9fd046f7d7 Mon Sep 17 00:00:00 2001 From: Baptiste Lemoine Date: Mon, 26 Oct 2020 20:49:22 +0100 Subject: [PATCH] :book: docs replace links to github to tedomum gitlab --- .idea/workspace.xml | 78 +++++++++++++++++++ README.md | 25 +++++- .../{twitter => openstreetmap}/internal.ex | 0 .../{twitter => openstreetmap}/oauth.ex | 2 +- ..._twitter.ex => ueberauth_openstreetmap.ex} | 0 mix.exs | 4 +- ..._test.exs => ueber_openstreetmap_test.exs} | 0 7 files changed, 105 insertions(+), 4 deletions(-) rename lib/ueberauth/strategy/{twitter => openstreetmap}/internal.ex (100%) rename lib/ueberauth/strategy/{twitter => openstreetmap}/oauth.ex (98%) rename lib/{ueberauth_twitter.ex => ueberauth_openstreetmap.ex} (100%) rename test/{ueber_twitter_test.exs => ueber_openstreetmap_test.exs} (100%) 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