Angular-auth-oidc-client: Token refresh error, is silent_renew.html configuration ?

Created on 7 Dec 2018  路  4Comments  路  Source: damienbod/angular-auth-oidc-client

Hello,
I have an issue with refreshing tokens.
After logging in succesfully, the tokens works fine till the end of IdTokenExpiration duration (which I configured in identity.xml to be 60seconds).
When the duration of 60 seconds passes, I get an error in my console saying that the token has expired.
This forces me to reload the url then I get redirected to the login page, else I stay navigating between my dashboard pages without having beeing able to get anything because my token has expired.

My configuration is as follows :

  start_checksession: true,
  silent_renew: true,
  silent_renew_url: '/silent-renew.html',

What I would like to know is, where should I place the silent-renew.html file ?

I would appreciate your help

All 4 comments

I've always specified the full url (including protocol and hostname) for the silent_renew_url. Your silent-renew.html file should be reachable at that location.

Thank for your response.
Should it work if I place the file locally in the angular app ?

if your browser can reach it.

If you place it in /src/assets it should work fine.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mustafakachwala picture mustafakachwala  路  4Comments

brentos99 picture brentos99  路  4Comments

profet23 picture profet23  路  3Comments

revok picture revok  路  4Comments

vit100 picture vit100  路  4Comments