IdentityModel.OidcClient icon indicating copy to clipboard operation
IdentityModel.OidcClient copied to clipboard

Added Identity Token to TokenRefreshEventArgs

Open fmgracias opened this issue 2 years ago • 4 comments

This change allows updating the identity token cached at the client with the latest identity token coming from token renewal.

The motivation for this change is that claims can change during the runtime of the identity client (in my case, it's user claims related to permissions).

The alternative approach would be to call /userinfo endpoint, which we consider an avoidable overhead.

fmgracias avatar Aug 18 '22 10:08 fmgracias

Thanks will have a look after holidays.

leastprivilege avatar Aug 19 '22 12:08 leastprivilege

Thanks will have a look after holidays.

Thank you for taking this into consideration @leastprivilege

Enjoy your holidays ✌️

fmgracias avatar Aug 19 '22 14:08 fmgracias

Hey @leastprivilege, this is just a friendly reminder for you to check this PR.

I wanted to avoid having to fork the repo for such a small tweak.

Thank you in advance for your consideration!

fmgracias avatar Sep 14 '22 09:09 fmgracias

Didn't mean to remove @brockallen from the reviewers. Not sure how that happened and I don't have permission to add him back

fmgracias avatar Sep 19 '22 13:09 fmgracias

@leastprivilege thanks for the review. Can you release a new version with those changes please?

fmgracias avatar Oct 10 '22 10:10 fmgracias