最近の検索


最近の検索はありません

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

コメント