{"id":4446,"date":"2023-01-31T07:00:23","date_gmt":"2023-01-31T07:00:23","guid":{"rendered":"https:\/\/himbap.com\/blog\/?p=4446"},"modified":"2023-01-31T07:06:39","modified_gmt":"2023-01-31T07:06:39","slug":"embedded-canvas-app-security-quick-tip","status":"publish","type":"post","link":"https:\/\/himbap.com\/blog\/?p=4446","title":{"rendered":"Embedded Canvas app Security- Quick Tip"},"content":{"rendered":"<p><strong>Problem<\/strong><br \/>\nEmbedded Canvas app not loading<\/p>\n<p><strong>Details<\/strong><br \/>\nRecently some of the user reported that they are not able to use Canvas app which is embedded on the sitemap. <\/p>\n<p>While using embedded canvas we need to consider following <\/p>\n<p><strong>User have all the required permission on the used entities <\/strong><br \/>\nDepending on what your app is doing we need to provide all the required permission to the users who will be using these apps for example if you have grid controls where you are display data of some entity or you have implemented CURD operations for some entity so user should be part of the security role where they have required privileges setup. While troubleshooting this option we found users have required permissions. <\/p>\n<p>While troubleshooting further we found error in the console <\/p>\n<p><strong>Principal user (Id=e3b&#8230;., type=8, roleCount=2, privilegeCount=440, accessMode=0), is missing prvReadCanvasApp privilege (Id=659b&#8230;&#8230;&#8230;..f) on OTC=300 for entity &#8216;canvasapp&#8217; (LocalizedName=&#8217;Canvas App&#8217;)<\/strong><\/p>\n<p>We have Canvasapp entity so if we are using canvas apps we need to make sure user have read permission for this entity. This entity is available under Customization tab. After providing this permission users were able to see app.<\/p>\n<p>Also make sure your users have the required license available. Fill free to share if you got another issue while working on the embedded app and how you solved it.<\/p>\n<p><strong>Summary<\/strong><br \/>\nThis is how we fix issue related to embedded canvas app.<\/p>\n<p>Hope it will help someone !!<br \/>\n<strong>Keep learning and Keep Sharing !!<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem Embedded Canvas app not loading Details Recently some of the user reported that they are not able to use Canvas app which is embedded on the sitemap. While using embedded canvas we need to consider following User have all the required permission on the used entities Depending on what your app is doing we need to provide all the&#8230; <a href=\"https:\/\/himbap.com\/blog\/?p=4446\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":4450,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[817,402,728],"tags":[968,1019,1018],"_links":{"self":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4446"}],"collection":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4446"}],"version-history":[{"count":3,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4446\/revisions"}],"predecessor-version":[{"id":4449,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4446\/revisions\/4449"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=\/wp\/v2\/media\/4450"}],"wp:attachment":[{"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/himbap.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}