Badges

1,079 views
Skip to first unread message

Eduardo Luz

unread,
May 13, 2013, 8:52:59 AM5/13/13
to canvas-l...@googlegroups.com
Hello guys.
There's anyway how can we assign badges to a user that completes the course ?

Thks!

--
Eduardo Luz

talk:    luz.e...@gmail.com
msn:   luz.e...@hotmail.com
         55 21 8402-6083

Paul Hinze

unread,
May 13, 2013, 10:57:28 AM5/13/13
to canvas-l...@googlegroups.com
Hi Eduardo,

Have a look at http://canvabadges.herokuapp.com/ - which lets you do exactly that.

Hope this helps,

Paul


--
 
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Eduardo Luz

unread,
May 13, 2013, 12:54:02 PM5/13/13
to canvas-l...@googlegroups.com
Yes, this is what i'm looking for.
Thanks!


2013/5/13 Paul Hinze <pa...@instructure.com>

Louise Munnoch

unread,
Jun 25, 2013, 10:53:39 PM6/25/13
to canvas-l...@googlegroups.com
Hi Paul
Your tool looks great and its exactly what I am looking for. 
BUT - after I follow your instructions, I click on the Badges link in the Module and I get this:
{"message":"invalid client_id"}
What have I done wrong?
Thanks
Louise

Rémi Bachelet

unread,
Jun 26, 2013, 4:05:37 AM6/26/13
to canvas-l...@googlegroups.com


Le lundi 13 mai 2013 16:57:28 UTC+2, Paul Hinze a écrit :
Hi Eduardo,

Have a look at http://canvabadges.herokuapp.com/ - which lets you do exactly that.

I do not completely understand how the badges system works. Badges are authentified by the twitter account of the instructor ? 

Paul Hinze

unread,
Jun 26, 2013, 9:47:58 AM6/26/13
to canvas-l...@googlegroups.com
On Tue, Jun 25, 2013 at 9:53 PM, Louise Munnoch <lou...@blinkmobile.com.au> wrote:
> Your tool looks great and its exactly what I am looking for.
> BUT - after I follow your instructions, I click on the Badges link in the Module and I get this:
>
> {"message":"invalid client_id"}

I was able to reproduce this issue locally. I'll look into it and follow up with you.

Louise Munnoch

unread,
Jun 26, 2013, 5:02:56 PM6/26/13
to canvas-l...@googlegroups.com
Thanks Paul. I'm barely techno literate, so I always assume it's me first, and technology second. I appreciate you taking the time to look into this for me.

--
Sent from my iPhone. All misspellings and inappropriate word usage are the fault of Autocorrect.
--
**Call me on 0404049689 if you need to get hold of me urgently**
You received this message because you are subscribed to a topic in the Google Groups "Canvas LMS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/canvas-lms-users/8qwv6LbR4Uo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to canvas-lms-use...@googlegroups.com.

Brian Whitmer

unread,
Jul 3, 2013, 6:11:28 PM7/3/13
to canvas-l...@googlegroups.com
Remi,

Canvabadges uses LTI to integrate with Canvas, which means you need a key and secret to make the installation happen correctly. You log in to the Canvabadges site using Twitter to retrieve a key and secret, but that is all and is really just a lightweight way for me to make sure the system doesn't get abused. The *real* user authentication actually happens using the Canvas logins of you and your students.

-Brian


--
 
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--

  

Brian Whitmer

unread,
Jul 3, 2013, 6:52:17 PM7/3/13
to canvas-l...@googlegroups.com
Louise, are you running your own instance of canvabadges or using the heroku instance? I've updated the github readme (https://github.com/whitmer/canvabadges/blob/master/README.md) to include the configurations you'll need in order to make your own instance of Canvabadges work.

The "invalid client_id" message is actually a Canvas error message, since the first thing that Canvabadges does on initial launch is tries to get an oauth token on behalf of the current Canvas user. It's saying that the configuration is off or has been disabled.

-Brian

Clayton Morrow

unread,
Jul 4, 2013, 9:40:12 AM7/4/13
to canvas-l...@googlegroups.com
Brian, 

THANKS!  I had been playing with setting up our own Canvasbadges server this week and kind of hit a roadblock when it came to the authentication after getting it running locally (which was an ordeal in itself, but that's just because I know very little about ruby apps in general).  I'll definitely be following these instructions tomorrow when I'm back to work.
Message has been deleted

dan...@blinkmobile.com.au

unread,
Jul 22, 2013, 7:14:00 PM7/22/13
to canvas-l...@googlegroups.com
I've installed my own instance of CanvaBadges on Heroku (http://blinkmobile-canvabadges.herokuapp.com/) and I receive the following error whenever I open the page:

"Domain not properly configured. No Organization record matching the host blinkmobile-canvabadges.herokuapp.com"

I'm new to Ruby so I imagine it's something on my end that I've forgotten to set (like an environment variable). If you/anyone could point me in the right direction, that would be great.

Thanks!

Brian Whitmer

unread,
Jul 24, 2013, 7:02:31 PM7/24/13
to canvas-l...@googlegroups.com
There's a little bit of a change in the newest push. Let me update the docs... again. I need to stop forgetting to update those :-). Should be up to date now. Email me personally if you still have questions or problems.

-Brian


On Mon, Jul 22, 2013 at 5:13 PM, <dan...@blinkmobile.com.au> wrote:
I've installed my own instance of CanvaBadges on Heroku (http://blinkmobile-canvabadges.herokuapp.com/) and I receive the following error whenever I open the page:

"Domain not properly configured. No Organization record matching the host blinkmobile-canvabadges.herokuapp.com"

I'm new to Ruby so I imagine it's something on my end that I've forgotten to set (like an environment variable). If you/anyone could point me in the right direction, that would be great.

Thanks!

On Thursday, 4 July 2013 08:52:17 UTC+10, whitmer wrote:
On Thursday, 4 July 2013 08:52:17 UTC+10, whitmer wrote:

Clayton Morrow

unread,
Aug 1, 2013, 8:28:51 AM8/1/13
to canvas-l...@googlegroups.com
Hey Brian, 

In trying to run your hosted version of CanvasBadges, configuring it on our system and adding it to a module, I get an error when trying to open it: server refused connection.  I am assuming this probably has to do with ports needing to be opened up for inbound communication, as we're using AWS.  Do you know what I need to allow?

Thanks, 
Clayton  

Brian Whitmer

unread,
Aug 5, 2013, 3:00:20 PM8/5/13
to canvas-l...@googlegroups.com
Hm, I've always run it in heroku, so I don't know that I'll be much help getting it going on plain AWS. I'm not much of an backend/ops guy :-/.

-Brian

Irsandi Hasan

unread,
Aug 6, 2013, 1:31:05 PM8/6/13
to canvas-l...@googlegroups.com
whitmer,

i've still get stuck with : {"message":"invalid client_id"}
howto solve this error ?

Brian Whitmer

unread,
Aug 6, 2013, 3:58:43 PM8/6/13
to canvas-l...@googlegroups.com
Irsandi, do you have a developer key from the instance of Canvas you're trying to authenticate against? When a user first launches Canvabadges it runs through the oauth flow of Canvas to get an API key on behalf of the user, which is needs to check progress toward badge completion. This error usually happens when you don't have a valid developer key from the instance of Canvas that Canvabadges is trying to authenticate against.

-Brian

Clayton Morrow

unread,
Aug 6, 2013, 4:45:25 PM8/6/13
to canvas-l...@googlegroups.com
No worries thanks for getting back to me, I was just wondering if there was any plumbing I needed to do to allow any traffic from your heroku app to my canvas install as it doesn't seem to be working.  When configured, my canvas install knows that canvasbadges is thre, but the 'server refused' message seems like maybe it was not getting any replies from heroku.  I think we'll just look into other options for now - we were just looking for some sort of 'course completion' certificate and the badges seemed like they would kind of work.

Brian Whitmer

unread,
Aug 6, 2013, 5:46:03 PM8/6/13
to canvas-l...@googlegroups.com
Oh wait, now I'm confused. I thought you were running your own instance of Canvabadges. Now I think you're saying instead that you're running your own Canvas, trying to get it working with my instance of Canvabadges? I think the way it's set up right now that won't work, since Canvabadges needs a developer key and right now it assumes the same one for all instances (i.e. Canvas Cloud). I'd need to add support for multiple developer keys depending on the domain. Still not sure why that would cause a "server refused" message, though..

-Brian

Irsandi Hasan

unread,
Aug 7, 2013, 1:42:38 AM8/7/13
to canvas-l...@googlegroups.com
i'm only have key and secret key from canvabadges, howto get developer key ?

Clayton Morrow

unread,
Aug 7, 2013, 1:59:12 PM8/7/13
to canvas-l...@googlegroups.com
Ah, gotcha.  Yeah, I definitely didn't describe that as well as I could have, sorry about that. I'll look into running your code on one of our own instances sometime when I get more time.  Thanks for the replies!

Brian Whitmer

unread,
Aug 8, 2013, 11:53:06 AM8/8/13
to canvas-l...@googlegroups.com
If you shoot an email to ka...@instructure.com and explain why you need a developer key, that's the current review process.

-Brian

kul...@ct2c.fr

unread,
Aug 30, 2013, 12:10:07 PM8/30/13
to canvas-l...@googlegroups.com
Hi Whitmer, 

I have several questions to ask about your incredible canvabadges application. :)
I must admit that this is the first Sinatra application that I try to install (I'm rather a "Rails" user) so... maybe some of my questions will seem a little bit odd.

My most important question: 
I've deployed your app on my own dedicated server. I've managed to access it with my browser (with an ugly warning because of the self-signed SSL certificate... but that was expected), I've managed to connect it with my own deployed Canvas application as an LTI application. 

But when I try to access it in one of my course, I've this error: 

OpenSSL::SSL::SSLError at
/oauth_success
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

With this Backtrace: 
  • /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb in connect
    1. timeout(@open_timeout) { s.connect }
  • /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb in block in connect
    1. timeout(@open_timeout) { s.connect }
  • /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/timeout.rb in timeout
    1. return yield(sec) if sec == nil or sec.zero?
  • /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/timeout.rb in timeout
    1. Timeout::timeout(n, e, &block)
  • /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb in connect
    1. timeout(@open_timeout) { s.connect }
  • /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb in do_start
    1. connect
  • /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb in start
    1. do_start
  • /usr/local/rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/net/http.rb in request
    1. start {
  • /var/www/vhosts/ns388733.ovh.net/badge.unow.fr/lib/auth.rb in block in registered
    1. response = http.request(request)

Did you ever face this issue? 
Do you have any clue why I have this SSL certificate issue?

All my SSL certificates are self-signed, do you think it may be the origin of this error?

Many thanks if you can help me with that. 


Other less important questions:
1. We can set a "DATABASE_URL" environment variable, but what kind of database url can we provide? I mean... I didn't find any way to specify credentials to connect to the database. Is there a way to connect the canvabadges application to an existing Database?

2. In production, we have to set the "SESSION_KEY" environment variable, where would be the best place to set it? (I'm deploying with Passenger and Apache... if it may change anything)

3. I've followed the documentations, and there is this command to execute in an irb console: 
> d = Domain.create(:host => "my_host", :name => "Badges App", :settings => {:twitter_login => true})

But it threw me an error saying that the "settings" attribute isn't accessible for the Domain class. And in the Domain class code doesn't have any "settings" attribute. Did I miss something?

4. I've seen that there is a "revocationList" attribute for the Organization class. What can we provide to this attribute? And what do you use it for?

If you provide me some answers, I'll be glad to add those to a wiki page on your project or... in the readme, if you mind. :)
My apologies if this post is shown twice... 

Cody Cutrer

unread,
Aug 30, 2013, 12:27:49 PM8/30/13
to canvas-l...@googlegroups.com
Yes, that error is that it cannot verify your self-signed certificate. I believe you can get past this by adding the public key portion of your certificate to the trusted certificates store on your machine. http://turboflash.wordpress.com/2009/06/23/curl-adding-installing-trusting-new-self-signed-certificate/ has a nice overview of how to that on a Linux machine.

Cody Cutrer
Software Engineer
Instructure
Message has been deleted

Brian Whitmer

unread,
Sep 4, 2013, 1:50:21 PM9/4/13
to canvas-l...@googlegroups.com
Not sure how much help I'll be, since the reason I use heroku is because I don't like dealing with server configs :-), but I'll answer what I can.

Other less important questions:
1. We can set a "DATABASE_URL" environment variable, but what kind of database url can we provide? I mean... I didn't find any way to specify credentials to connect to the database. Is there a way to connect the canvabadges application to an existing Database?

I can't help here, this is one of the things heroku does for me.


2. In production, we have to set the "SESSION_KEY" environment variable, where would be the best place to set it? (I'm deploying with Passenger and Apache... if it may change anything)

Same, heroku makes my life easier.


3. I've followed the documentations, and there is this command to execute in an irb console:
> d = Domain.create(:host => "my_host", :name => "Badges App", :settings => {:twitter_login => true})

But it threw me an error saying that the "settings" attribute isn't accessible for the Domain class. And in the Domain class code doesn't have any "settings" attribute. Did I miss something?

Shoot, that's wrong. I'll update the docs. Here's what you should run instead:

d = Domain.create(:host => "badgemagic.yourdomain.com", :name => "Name Of Your Badging Thing")
o = Organization.create(:host => "badgemagic.yourdomain.com", :settings => {
  'name' => "Name Of Your Badging Thing", 
  'description' => "I just really like badging!",
  'twitter_login' => true,
  'url' => 'http://badgemagic.com',
})

4. I've seen that there is a "revocationList" attribute for the Organization class. What can we provide to this attribute? And what do you use it for?

Revocation list is a placeholder, since the URL is part of the badging spec. Basically it allows a badging system to revoke badges after they've once been awarded. It's about 20% implemented, and if it's important I can look at adding it, it just hasn't been a priority for me personally.

Sorry I'm not more help! Maybe someone else knows more about Sinatra db config and env variables.
-Brian

Irsandi Hasan

unread,
Sep 6, 2013, 1:30:23 PM9/6/13
to canvas-l...@googlegroups.com
Hello Brian,

I've installed my own canvas open source.
I've try to add canvasbadge using app center.
I've key and secret get from https://canvabadges.herokuapp.com/
I've add external tools to module.
when i click the badge link in module, i'm still get : {"message":"invalid client_id"}
check to error_reports but no error i get.

my question :
this app for open source version or premium version ?
if this app can be used with open source version, why i'm still get this error ?

thank you.

Brad Humphrey

unread,
Sep 6, 2013, 2:23:32 PM9/6/13
to canvas-l...@googlegroups.com
Right now the version of canvasbadages that is hosted at https://canvabadges.herokuapp.com/ only connects with cloud canvas.  If you want to run canvasbadges on a open source version of canvas, you will also have to host your own instance of canvasbadges.


       


dan...@blinkmobile.com.au

unread,
Sep 7, 2013, 6:52:24 AM9/7/13
to canvas-l...@googlegroups.com
I imagine it's a bit of a long shot; but could you detail what needs to be done in order to get a hosted version of canvasbadges working? I've got a hosted (open-source) version of Canvas, as well as my own instance of CanvasBadges running, and I'm receiving the same "invalid client id" error.

Thanks!

Brad Humphrey

unread,
Sep 9, 2013, 12:07:06 PM9/9/13
to canvas-l...@googlegroups.com
Here are the steps that I think you need to follow to get this working:
  • Issue a developer key and secret in your hosted canvas instance at /developer_keys.
    • Key name and redirect uri are the only required fields.
    • Redirect uri should just needs to be the url for your canvas badges instance
  • Follow the instructions on github (https://github.com/whitmer/canvabadges#setup) for specifying  the 'canvas_oauth' config, using the developer_key and secret that you generated in step one.
Just to double check, can you verify that the after the tool launches it is redirecting to your instance of canvas for oauth?


       


Message has been deleted
Message has been deleted

Brad Humphrey

unread,
Sep 10, 2013, 11:02:51 AM9/10/13
to canvas-l...@googlegroups.com
yeah, feel free send a pull request to the canvas badges project


       


On Mon, Sep 9, 2013 at 10:49 AM, <kul...@ct2c.fr> wrote:
Hi! 

Actually you did help me! :)
As it's true that we have to defined SESSION_KEY/DATABASE_URL at the server level on Heroku, I've made some searches and found a way to define those thanks to passenger. I'll explain how for others! 

The idea is to set up a file exporting those variables and to make passenger load this file on startup. Actually it is quite simple! Here is a step by step:

- Create a file named "set_environment" (or whatever) in the root folder of your project and define there your variables like so (for canvabadges):
export DATABASE_URL="postgres://username:password@hostname/database_name"
export SESSION_KEY="your_secret_chain"

And save the file! 

- Next create one other file, that would be conventionally named "ruby_wrapper". This little wrapper will only load the "set_environment" file + execute ruby: (I recommend using the "which ruby" command from the canvabadges project root to know the path to your ruby binary). 

#!/bin/sh
source /path/to/project/set_environment
exec "/path/to/your/ruby"

Once it's done, don't forget to remove those two files from your versioning manager (like git) as they contain some sensitive information. Then you have to add the "execute" right to the ruby_wrapper file. (sudo chmod u+x ruby_wrapper). 

- The last step is to tell passenger to use this ruby wrapper when it launches the server for this application. I've set it that in my VirtualHost, like so: 

SetEnv RACK_ENV production
PassengerRuby /path/to/your/project/ruby_wrapper

Then on next restart passenger should load this file and everything should be set up and work as expected! 

Don't forget to create the postgres database that you put in your DATABASE_URL. Here is a starting guide on DataMapper to help you configure the application according to your needs: http://datamapper.org/getting-started.html. You should know that canvabadges is already configured to work perfectly with postgresql (as Heroku uses postgres so does the application ^^). 

One last thing, once you've created your database (in command lines, for instance), you have to initialize it. To do so, you have to launch the irb console from the root folder of the project. To make my life easier, I've created a third file, which I named "ruby_console" and I've put those lines in it: 

#!/bin/sh
export RACK_ENV=production
source path/to/your/project/set_environment
exec "/path/to/your/irb"

Then I added the execution right on it, and I now just have to launch it ./ruby_console to have an irb console with the expected environment variables. (Again do not include it in git). Then the:

> require './canvabadges.rb' 

Command should go through without any problems. Then you just have to launch: 

> DataMapper.auto_migrate!

To initialize your database. (All the tables will be created with correct columns). Be warned, auto_migrate will wipe out existing data. Use "auto_upgrade!" if you already have some datas in your badge database... 

And that's it!

I hope this little how to will help others! 

Would you mind if I add it to the documentation of canvabadges? Or in the wiki? 
Message has been deleted

dan...@blinkmobile.com.au

unread,
Sep 18, 2013, 8:10:51 PM9/18/13
to canvas-l...@googlegroups.com
Hi All,

I've managed to get CanvaBadges working, which is amazing. So a quick thanks to everyone who helped out! :)

But! I'm having an issue with issuing badges manually. When trying to issue a badge to a person, the application requests access to my account (as it did the first time I opened it up), I click accept/login, and it seems to refresh the page without making any changes.

My previous post (which was deleted) had an error message saying "Configuration not Found". However, I realised the code hasn't been updated in ages, so I pulled the changes from the git repo and while it removed the "Configuration not found" error; it gives me the behaviour above.

Any help would be greatly appreciated!

Thanks,
Daniel

Stressmagnet

unread,
Sep 25, 2013, 7:19:11 PM9/25/13
to canvas-l...@googlegroups.com, dan...@blinkmobile.com.au
Hi Daniel, I'm also having this issue. I've got Badges being awarded automatically which is awesome, but when I try and award them manually, I get an error.
Can anyone shed any light on this issue? I'm hopelessly untechnical, and a whole lot lost.
thanks folks!

Jeremy Schichor

unread,
Sep 27, 2013, 10:28:34 AM9/27/13
to canvas-l...@googlegroups.com
I'm running into some trouble setting up Canvabadges--can anyone help me out?

I first tried setting it up on our test server, and when I went to the badge page it displayed "Error retrieving badge status" where the status should be, and "Loading failed" under the student list. Firebug shows a response of "<h1>Internal Server Error</h1>" for the status request to herokuapp.

I then gave it a shot on our production server (in a sandbox course). On production the status message comes up as "ERROR: value too long for type character varying(256)". The student list does load, but if I try to manually approve any student, I am prompted for oAuth authorization and when I grant it nothing else happens--the student remains unapproved.

On both test and production, badges are not granted to student who have met the criteria, no matter what permutation of badge settings I try.

Any help anyone can provide would be appreciated. Thanks!

Jeremy.

Brian Whitmer

unread,
Sep 27, 2013, 1:45:31 PM9/27/13
to canvas-l...@googlegroups.com
Jeremy, I think I've found the problem. The column for the badge URL was a varchar(256), which doesn't work for some URLs and won't work for any data-uris for sure. I've updated the column table. I'll push the change up to github later today, including migration notes for anybody who's running their own canvabadges.

Anybody running their own, I've added a bit more functionality over the last week, so for sure check out the readme. I'm trying to get to the point where you can manually award badges without having to place them as an item in modules (so, for example, you could make a generic "Good Discusser!" badge and then award it to any students in any of your courses). Not quite there yet, but getting close.

-Brian

-Brian


--
 
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Brian Whitmer | Co-Founder
br...@instructure.com
instructure.com 

  

Irsandi Hasan

unread,
Sep 29, 2013, 9:42:08 AM9/29/13
to canvas-l...@googlegroups.com
Did anyone have user guide howto installing canvabadges in heroku ? or Installing Canvasbadges in own instance like ubuntu server.

Please help me with this. thx a lot.

zq...@umich.edu

unread,
Dec 11, 2013, 4:16:53 PM12/11/13
to canvas-l...@googlegroups.com
Hi, I hope someone will help me out here:

I am downloaded the opensource canvas, and have it running locally.

I went to https://canvabadges.herokuapp.com/, logging to my Twitter account, and got the key, secret and URL for Canvabadges. 

Then I went to External Tools and added new app for the Canvabadge with Configuration Type of "by URL" and paste in my key and password. I have saved the configuration correctly without error. The tool is marked with Resource Selection and User Navigation Extensions type.

The following is the traces I can find in the Canvas log file:

Processing ExternalToolsController#update to json (for 127.0.0.1 at 2013-12-11 16:00:13) [PUT]
[0bd730076686acd916afe42aa430419d 272d1dc0-44d5-0131-8ea8-14109fdc9d39]   Parameters: {"consumer_key"=>"<key>", "created_at"=>"2013-12-11T20:48:25Z", "description"=>"Easily award badge credentials to students who meet course completion criteria", "domain"=>"", "id"=>"6", "name"=>"Badge3", "updated_at"=>"2013-12-11T20:48:27Z", "url"=>"https://canvabadges.herokuapp.com/placement_launch", "privacy_level"=>"public", "custom_fields"=>{}, "workflow_state"=>"public", "vendor_help_link"=>nil, "user_navigation"=>{"url"=>"https://canvabadges.herokuapp.com/placement_launch?custom_show_all=1", "text"=>"My Badges", "enabled"=>"true", "label"=>"My Badges", "selection_width"=>800, "selection_height"=>400}, "course_navigation"=>nil, "account_navigation"=>nil, "resource_selection"=>{"url"=>"https://canvabadges.herokuapp.com/placement_launch", "text"=>"Canvabadges", "selection_width"=>800, "selection_height"=>500, "enabled"=>"true", "label"=>"Canvabadges"}, "editor_button"=>nil, "homework_submission"=>nil, "custom_fields_string"=>"", "shared_secret"=>"<secrect>", "config_type"=>"manual", "config_url"=>"", "config_xml"=>"", "action"=>"update", "controller"=>"external_tools", "format"=>"json", "course_id"=>"1", "external_tool_id"=>"6"}

However, when I try to add the tool to Canvas module, it pops up an empty window with "sad face" icon in the middle.

I cannot find any error message in the log file.

Any suggestions?

Thanks,

- Zhen

zq...@umich.edu

unread,
Dec 11, 2013, 4:22:54 PM12/11/13
to canvas-l...@googlegroups.com, zq...@umich.edu
Now that if I change the Privacy setting of the CanvaBadge external tool from "Public" to "Anonymous", I got the following error after adding the tool into module:

This app appears to have been misconfigured, please contact your instructor or administrator. App must be launched with public permission settings.


What is the correct setting of Privacy for CanvaBadge tool?

Thanks,

- Zhen

Brian Whitmer

unread,
Dec 11, 2013, 5:20:17 PM12/11/13
to canvas-l...@googlegroups.com
Zhen, I haven't heard of a sad face error, but Canvabadges won't work with more than one Canvas instance at a time. The heroku instance you're talking about it tied to Canvas Cloud, so it won't work with your open source instance of Canvas. That *might* be the reason you're getting the error that you are. Canvabadges is open source, though, and should be easier to get up and running than Canvas itself, so there's that route.

I do want to add multitenancy to Canvabadges, but I haven't gotten to that yet.

Hope that helps!
-Brian


--
 
---
You received this message because you are subscribed to the Google Groups "Canvas LMS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to canvas-lms-use...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

zq...@umich.edu

unread,
Dec 12, 2013, 1:40:00 PM12/12/13
to canvas-l...@googlegroups.com
Hi, Brian:

Thanks for your reply. I will download open source Canvabadges and try it later.

Thanks,

- Zhen

Brian Whitmer

unread,
Dec 13, 2013, 1:47:08 PM12/13/13
to canvas-l...@googlegroups.com
Zhen, I just looked at the code and it looks like I lied to you, it is possible for my heroku instance to talk to your Canvas install. I added support for it a little while ago and just didn't tell anybody (and forgot about it myself). I just need some additional information from you. If you want to try it out shoot me an email directly and I'll send you what I need from your side (basically I need a developer key generated on your instance of Canvas).

Thanks!
-Brian
Reply all
Reply to author
Forward
0 new messages