Sha256: 0205a8de5c9ecfb9395edff3570b5a17f08765e038bda02456931092ab5c8e2e
Contents?: true
Size: 779 Bytes
Versions: 1
Compression:
Stored size: 779 Bytes
Contents
# Example Rails app This simple Rails app demonstrates how you would use the canvas-embeds Gem to generate a token granting access to Canvas embeds for one of your users. The signing key is expected to be in the CANVAS_SIGNING_KEY variable. After running `bundle install` you can start the Rails server with ``` CANVAS_SIGNING_KEY=[your signing key] bin/rails server ``` Then access `localhost:3001/generate_token` in your browser. You should see the signed token payload. This can be used in the [React component](https://github.com/canvas/embeds/tree/main/react) to view embedded Canvas charts as they will appear to your users. In order for this to work, you'll need to update the scopes in `ApplicationController` to include the ones relevant to your charts and user.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
canvas-embed-0.1.4 | example/README.md |