function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mallik1221Mallik1221 

i had configured custom attributes in my canvas app, but these attributes are not passing into signed request, could anyone please help

Khan AnasKhan Anas (Salesforce Developers) 
Hi Mallik,

Greetings to you!

Please refer to the below links which might help you further with the above requirement.

https://salesforce.stackexchange.com/questions/50306/passing-custom-attributes-in-canvas-app-signed-request

https://salesforce.stackexchange.com/questions/224206/canvas-app-verify-signed-request

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Mallik1221Mallik1221
Hi Khan,

Thanks for the reply, I followed this link https://salesforce.stackexchange.com/questions/50306/passing-custom-attributes-in-canvas-app-signed-request but still im not getting custom attributes into my signed request. 

Here is the apex class, please check it once.

public with sharing class canvasCON{
public user u;
public canvasCON(){
   u=[select id,name from user where id=:userinfo.getuserid()];
}    
public string getjParameters(){
    string json;
    String jsonout = '{'+
    '  \"Role \": \"'+User.Role__c+'\",'+              
    '}';
    return json;
 }
}.

Thanks
Mallik