Closed adietish closed 4 years ago
@mhagnumdw could you please test this? Would love to get your feedback. I added IAuthorizationContext.getExpiresIn()
& IAuthorizationContext.getExpires()
. The prior returns the value that was included in the authorization response while the latter would indicate the moment at which the token expires (adds expiresIn to the creation timestamp).
@adietish, I ran the test and everything looks fine!
I'll just add a note at one point in the code in case you think it's worth handling a NumberFormatException
.
Tks!!
I'll just add a note at one point in the code in case you think it's worth handling a
NumberFormatException
.
Ideally we should throw an OpenShift exception in this case specifying that we could not determine the expires timestamp bcs the expiresIn wasn't in the correct format. Anything else doesn't seem to make any sense. Agree?
Ideally we should throw an OpenShift exception in this case specifying that we could not determine the expires timestamp bcs the expiresIn wasn't in the correct format. Anything else doesn't seem to make any sense. Agree?
Sounds good.
ps: I accidentally deleted my review comment
Hi @mhagnumdw
I am now throwing an OpenShiftException when "expiresIn" has an illegal value and cannot be parsed. Can I get your +1 or dissenting opinion, please?
/ok-to-test
merged.
fixes #463