Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a silent renew event? #1011

Closed
fengzhihenxs opened this issue Mar 12, 2021 · 5 comments
Closed

Is there a silent renew event? #1011

fengzhihenxs opened this issue Mar 12, 2021 · 5 comments
Labels

Comments

@fengzhihenxs
Copy link

fengzhihenxs commented Mar 12, 2021

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

@fengzhihenxs
Copy link
Author

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.

@stefanocke
Copy link

stefanocke commented Mar 16, 2021

@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.

@fengzhihenxs
Copy link
Author

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

@JerrettDavis
Copy link
Contributor

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.

Repository owner deleted a comment from inloox-dev Apr 25, 2021
@FabianGosebrink FabianGosebrink mentioned this issue May 9, 2021
19 tasks
@damienbod
Copy link
Owner

fixed in Version 12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants