casdoor / casdoor-java-sdk

Java client SDK for Casdoor
https://github.com/casdoor/casdoor
Apache License 2.0
27 stars 43 forks source link

why not check the exp time when parse token #75

Closed ddavidzhang closed 7 months ago

ddavidzhang commented 8 months ago

The api "parseJwtToken" need return the JWT exp time or check the exp. The jwt exp time setted is no use now.

https://github.com/casdoor/casdoor-java-sdk/blob/26b92ecd651ab96d7acf7de29ea3e1a07082e2e5/src/main/java/org/casbin/casdoor/service/AuthService.java#L71-L106

casbin-bot commented 8 months ago

@tangyang9464 @JalinWang @imp2002

hsluoyz commented 8 months ago

@ddavidzhang hasn't this code already checked exp time?

https://github.com/casdoor/casdoor-java-sdk/blob/26b92ecd651ab96d7acf7de29ea3e1a07082e2e5/src/main/java/org/casbin/casdoor/service/AuthService.java#L71-L106