최근 검색


최근 검색 없음

Anthony Plaza's Avatar

Anthony Plaza

가입한 날짜: 2025년 1월 22일

·

마지막 활동: 2025년 1월 28일

팔로잉

0

팔로워

0

총 활동 수

7

투표

1

가입 플랜

1

활동 개요

님의 최근 활동 Anthony Plaza

Anthony Plaza님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk SDKs

Hello again Greg.

I copied the shared secret from here, from the mobile sdk:



That's correct, I have the shared secret inside the backend, which I generate through it the JWT, this backend is made in Java with Maven, I attach reference:

 String token = Jwts.builder()
               .setHeader(headers)
               .setClaims(claims)
               .setIssuedAt(new Date(currentTime * 1000))
               .setExpiration(new Date(expirationDate * 1000))
               .signWith(SignatureAlgorithm.HS256, SECRET_KEY)
               .compact();

 

Shared secret is stored in the SECRET_KEY parameter, and the generated token is returned, that token is what I am already trying to identify in Swift using Identify in the Zendesk instance.
Additionally, this generated token is the one that I try to validate in jwt.io and what comes out is invalid signature, I know that what is wrong is something very obvious but I don't know what it is, I would appreciate it if you could give me a hand!


 

 

 


 

댓글 보기 · 2025년 1월 28일에 게시됨 · Anthony Plaza

0

팔로워

0

투표 수

0

댓글


Anthony Plaza님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk SDKs

I attach reference image of the appId and shared secret:

Please confirm if the data is correct, after that I attach a request for how I send the data within the jwt:
{
 "kid": "app_6797b77d86edc971e83adb08",
 "typ": "JWT",
 "alg": "HS256"
}

 

{
 "scope": "user",
 "name": "xxxxx",
 "external_id": "xxxxx",
 "exp": 1738001343,
 "iat": 1737997743,
 "email": "xxxxxx"
}
I still get an invalid signature, please help.

댓글 보기 · 2025년 1월 27일에 게시됨 · Anthony Plaza

0

팔로워

0

투표 수

0

댓글


Anthony Plaza님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk SDKs

Hello Keara, I tell you that based on your observation I found the appId and the shared secret, and I invoke it in the backend that generates the jwt, however valid in jwt.io I get invalid signature, and I enter the app and it does not authenticate the access to the bot.
I attach reference image of the appId and shared secret:

Please confirm if the data is correct, after that I attach a request for how I send the data within the jwt:
{
 "kid": "app_6797b77d86edc971e83adb08",
 "typ": "JWT",
 "alg": "HS256"
}

 

{
 "scope": "user",
 "name": "xxxxx",
 "external_id": "xxxxx",
 "exp": 1738001343,
 "iat": 1737997743,
 "email": "xxxxxx"
}
I still get an invalid signature, please help.

 

댓글 보기 · 2025년 1월 27일에 게시됨 · Anthony Plaza

0

팔로워

0

투표 수

0

댓글


Anthony Plaza님이 에 댓글을 입력함

커뮤니티 댓글 Developer - Zendesk SDKs

Hi Greg!
Thank you for answering, but I tell you that I am clear about that, they are 2 different things and if I have the shared secret, the one that I don't know where I should obtain or generate it from is the kid, I would greatly appreciate it if you could give me an idea there.

Anthony

댓글 보기 · 2025년 1월 27일에 게시됨 · Anthony Plaza

0

팔로워

0

투표 수

0

댓글


Anthony Plaza님이 에 게시물을 만듦

게시물 Developer - Zendesk SDKs

Hello, I have been trying to validate the entry to the Zendesk bot through the sdk on iOS, applying the jwt, what happens is that it generates the jwt and in the parameters it asks me for the secret key, which I do enter, but the key id I don't have the slightest idea which one is placed, since it has a format of "app_65165493848" and when I try to validate it through pages that validate if it is signed or No, only the invalid signature appears, I think the problem lies with Kid who asks me to place it, but I don't know exactly where the one I should put is.

2025년 1월 22일에 게시됨 · Anthony Plaza

1

팔로워

3

투표 수

8

댓글