최근 검색


최근 검색 없음

Kumail Raza's Avatar

Kumail Raza

가입한 날짜: 2021년 10월 16일

·

마지막 활동: 2021년 12월 24일

팔로잉

0

팔로워

0

총 활동 수

4

투표 수

0

플랜 수

2

활동 개요

님의 최근 활동 Kumail Raza

Kumail Raza님이 에 댓글을 입력함

댓글Single sign-on

How to increase the jwt token time from 3minutes to some X-time? 

댓글 보기 · 2021년 12월 24일에 게시됨 · Kumail Raza

0

팔로워

0

투표 수

0

댓글


Kumail Raza님이 에 게시물을 만듦

게시물 Q&A - Account and billing

{myloginur}?kind=error&message=JWT+signature+invalid.+The+signature+cannot+be+verified%2C+check+that+your+tokens+match

I enable the JWT seeing the details here
https://support.zendesk.com/hc/en-us/articles/203663816-Enabling-JWT-JSON-Web-Token-single-sign-on

My configuration via Admin Center.

1. Both SAML(using for some reason) and JWT is enable.
2. In EndUser section, I tried enabling the ExternalAuthentication tried with both enable and disable.

Receiving the same error.

Code snippet

Date now = new Date();
Date expiryDate = new Date(now.getTime() + 6048000);

String jwtString = Jwts.builder()
.setIssuer("zendesk")
.setSubject("zendesk-user")
.setId(UUID.randomUUID().toString())
.claim("email", getUser().getEmail())
.claim("name ", getUser().getName())
.setIssuedAt(new Date())
.setExpiration(expiryDate)
.signWith(SignatureAlgorithm.HS256, SHARED_KEY)
.compact();

String redirectUrl = "https://" + SUBDOMAIN + ".zendesk.com/access/jwt?jwt=" + jwtString;

if (returnTo != null) {
redirectUrl += "&return_to=" + encode(returnTo);
}

return redirectUrl;



2021년 8월 25일에 게시됨 · Kumail Raza

0

팔로워

2

투표 수

1

댓글