ZenDesk iOS SDK : How to generate JWT endpoint URL? -


i working on ios app need integrate zendesk sdk. have setup appid, zendeskurl, clientid.

 [[zdkconfig instance] initializewithappid:@"xxxxxxx"                                zendeskurl:@"https://xxxxx"                               andclientid:@"xxxxxx"];   [zdcchat configure:^(zdcconfig *defaults) {      defaults.accountkey = @"xxxxx";     defaults.prechatdatarequirements.department = xxxx;     defaults.prechatdatarequirements.message = xxxx; }]; 

when set authentication method anonymous, working fine.

  [zdkconfig instance].useridentity = [[zdkjwtidentity alloc]                                          initwithjwtuseridentifier:@"xxx@gmail.com"]; 

but when set jwt authentication method. it's not working.

enter image description here

kirti, know little old went through setup , got working might others.

setting jwt endpoint authentication method requires have own server endpoint zendesk can go to let verify identity.

so in field says jwt url, shouldn't have url zendesk instance. should have https://yourserver.com/verifyjwt (that's example endpoint). @ endpoint server should verify jwt valid , return either 200 http response or 401 http response (success , unauthorized respectively) more details zendesk here.

then using ios sdk need set identity zendesk knows send server endpoint. key getting identity server (probably response login) can verify when zendesk hits endpoint. identity can string long it's in format can verify.

you need know how jwt's formatted. found this article helpful.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -