<% # Copyright (C) 2011 - 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 . %>

Consumer Key: <%= params[:oauth_consumer_key] %>

<% if params[:ext_content_intended_use] == 'embed' || params[:ext_content_intended_use] == 'homework' %> image embed
link embed
<% end %> lti link embed
<% if params[:ext_content_intended_use] == 'embed' %> iframe embed
&url=<%= CGI.escape("http://www.flickr.com/photos/bees/2341623661/") %>">oembed embed
<% else %> bad lti link embed (bad url)
bad lti link embed (no url)
bad lti link embed (no text)
<% end %> <% if params[:ext_content_intended_use] == 'homework' %> &text=delete&title=delete">full URL link embed
&text=<%= CGI.escape("delete.png") %>">file embed
&text=<%= CGI.escape("robots") %>&content_type=<%= CGI.escape("text/plain") %>">file embed
&text=<%= CGI.escape("delete.png") %>&content_type=<%= CGI.escape("image/png") %>">bad file embed
<% end %> <% if params[:ext_content_intended_use] == 'content_package' %> &text=<%= CGI.escape("delete.png") %>">file embed
<% end %>