<% # Copyright (C) 2015 - present Instructure, Inc. # # This file is part of Canvas. # # Canvas is free software: you can redistribute it and/or modify it under # the terms of the GNU Affero General Public License as published by the Free # Software Foundation, version 3 of the License. # # Canvas is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR # A PARTICULAR PURPOSE. See the GNU Affero General Public License for more # details. # # You should have received a copy of the GNU Affero General Public License along # with this program. If not, see . %> <%= fields_for :settings, OpenObject.new(settings) do |f| %>
Get correct information from your Google Developer Console
<%= f.blabel :client_id, :en => "Client ID" %> <%= f.text_field :client_id %>
<%= f.blabel :client_secret, :en => "Client Secret" %> <%= f.password_field :client_secret %>
<%= f.blabel :redirect_uri, :en => "Redirect URI" %> <%= f.text_field :redirect_uri %>
<%= f.blabel :auth_uri, :en => "Auth URI" %> <%= f.text_field :auth_uri %>
<%= f.blabel :token_uri, :en => "Token URI" %> <%= f.text_field :token_uri %>
OR
<%= mt(:description, <<-TEXT, :google_url => 'https://console.developers.google.com/project') Paste the contents of client_secrets.json below. The text boxes above will be automatically filled in based on the content given below. TEXT %>
<%= f.blabel :client_secret_json, :en => "Client secrets json" %> <%= f.text_area :client_secret_json, :rows => '4' %>
<% end %>