* 'Modify notes'
* On the next page, copy the "Client ID"
* Edit config/settings.local.yml in your rails tree
-* Add the "id_oauth_application" configuration with the "Client ID" as the value
+* Add the "id_application" configuration with the "Client ID" as the value
* Restart your rails server
An example excerpt from settings.local.yml:
# Default editor
default_editor: "id"
# OAuth 2 Client ID for iD
-id_oauth_application: "Snv…OA0"
+id_application: "Snv…OA0"
```
To allow [Notes](https://wiki.openstreetmap.org/wiki/Notes) and changeset discussions to work, follow a similar process, this time registering an OAuth 2 application for the web site:
<%= javascript_include_tag "edit/id" %>
<div id="map">
- <% data = { :configured => Settings.key?(:id_oauth_application) }
+ <% data = { :configured => Settings.key?(:id_application) }
data[:lat] = @lat if @lat
data[:lon] = @lon if @lon
data[:gpx] = trace_data_url(params[:gpx], :format => :xml) if params[:gpx]
</head>
<body>
<% data = {}
- if Settings.key?(:id_oauth_application)
- token = current_user.oauth_token(Settings.id_oauth_application)
+ if Settings.key?(:id_application)
+ token = current_user.oauth_token(Settings.id_application)
data[:token] = token.token
end
data[:locale] = ID::LOCALES.preferred(preferred_languages).to_s
default_editor: "id"
# OAuth application for the web site
#oauth_application: ""
-# OAuth consumer key for iD
-#id_oauth_application: ""
+# OAuth application for iD
+#id_application: ""
# Imagery to return in capabilities as blacklisted
imagery_blacklist:
# Current Google imagery URLs have google or googleapis in the domain