Skip to content

Set helpers on a custom generated token set? #709

Answered by panva
m1212e asked this question in Q&A
Discussion options

You must be logged in to vote

Those helpers depended on rewriting the Token Endpoint Response from having expires_in to having an expires_at and then expires_in being a calculated getter. And the return was it's own Class 🙅.

I don't want to do that anymore, the intention is to merely return what the AS returned. To that end I suggest that you calculate the expiration time yourself based on the expires_in when you receive it.

There's an interaction with missing expires_in that I simply don't want to deal with anymore. The AS doesn't have to return it, not to mention that the AS may revoke the Access Token at any point in time anyway.

Alternatively, just use the token until you get WWWAuthenticateChallengeError and then…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@m1212e
Comment options

Answer selected by m1212e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants