Sha256: 4abcb5c14c0ac72590db4d85d3d66b11d337848d6c6adb0070790d99174ecaf3
Contents?: true
Size: 1.17 KB
Versions: 2
Compression:
Stored size: 1.17 KB
Contents
# Canvas::Embed This Gem allows you to generate signed tokens that grant access to your Canvas embeds. Your application frontend can then use these tokens in the Canvas [React component](https://github.com/canvas/embeds/tree/main/react) to display your Canvas embeds in your application. Each token should be configured with the set of scopes that are approriate for the user, granting them access to only their data. If any scopes are required by your charts that are not present in the scopes payload, the request will fail. You can view how this Gem is used in a sample rails app in the `example/` directory # Running ``` bin/rails server ``` This application expects the key in the CANVAS_SIGNING_KEY variable. You can set this by running: ``` CANVAS_SIGNING_KEY=emk_HgwRqhyt.f0533f95ed220910218667124cac2116fsse11daf2aa1ff9938f7fde7a16c203 bin/rails server ``` # Running tests ``` rspec ``` # Canvas publishing ``` # increment the version in version.rb # build the new gem rake build # outputs new gem path eg 'canvas-embed 0.1.1 built to pkg/canvas-embed-0.1.1.gem' # publish the new gem (need rubygems.org access) from the path above gem push pkg/canvas-embed-0.1.1.gem ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
canvas-embed-0.1.4 | README.md |
canvas-embed-0.1.3 | README.md |