1. Andrea Vitali
  2. PowerBuilder
  3. Friday, 15 October 2021 10:24 AM UTC

I am using the RestClient object. With the GetJWTToken (...) method I get the token.
I need to know which method to use to get the Token expiration date and time.

Mark Lee @Appeon Accepted Answer Pending Moderation
  1. Monday, 18 October 2021 05:08 AM UTC
  2. PowerBuilder
  3. # 1

Hi Andrea,

 

RESTClient object only has the GetJWTToken method but doesn’t have a method to get the Token expiration date and time. 

If you need to get the Token expiration date and time, you can use the GetExpiresln method of the TokenResponse object.

You can refer to the following link for details of the GetExpiresIn PowerScript function

https://docs.appeon.com/pb2021/powerscript_reference/ch02s04s254.html 

 

And for complete code example, you can refer to the link for how to use the TokenReponse object and Supporting OAuth 2.0 Authorization Server:

https://docs.appeon.com/pb2021/application_techniques/ch04s08.html

 

Regards,

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.