Angular-auth-oidc-client: Is there a silent renew event?

Created on 12 Mar 2021  ·  4Comments  ·  Source: damienbod/angular-auth-oidc-client

Hello, I now need to do some operations during silent update. When I update silently, is there a silent update event?

question

All 4 comments

Let me describe my needs. My main site uses the code flow pkce with refresh tokens of angular-auth-oidc-client. The subsite requests the main site to obtain the token. When the subsite requests it, the main site may be silent renew. At this time, the token cannot be requested. I need Do processing in the silent renew event.

@fengzhihenxs , according to my observations the following event is fired by PublicEventService after token refresh:

{authorizationState: "Authorized", validationResult: "Ok", isRenewProcess: true}

But I am not a committer and don't know if you can rely on this.

@stefanocke Thank you. But I don't think it is. I found that the "IdTokenExpired" event is triggered before each silent update.

I was looking into the code, and it appears there's a oidc-silent-renew-init event that is raised in the refresh-session-iframe.service at the beginning of the refresh operation, but nothing is raised during or after.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yelhouti picture yelhouti  ·  4Comments

Jonesie picture Jonesie  ·  4Comments

brentos99 picture brentos99  ·  4Comments

sdev95 picture sdev95  ·  3Comments

cgatian picture cgatian  ·  4Comments