Skip to content

Code+PKCE flow does not seem to support iframe-based silent refresh yet #777

@jeroenheijmans

Description

@jeroenheijmans

Issue #600 was closed via PR #735 but I've not been able to get this to work. I personally think it's still broken?

To reproduce my issue:

  1. check out this commit in my sample repo
  2. run npm ci
  3. run ng serve
  4. click the "login" button and log in on the demo identityserver
  5. you get redirected back to the app, and are logged in
  6. clear storage (to simulate you land freshly on the app in a second) - Note: you're still logged into the IDS with a session!
  7. reload the page
  • Result: the app "hangs" for a while as it's trying to do the iframe silent refresh, but that never properly returns a succeeded promise (as it does do on the master branch of my repository for implicit flow). You see a silent_refresh_timeout on the console as an error.
  • Expected: the iframe refresh should return a promise of a successful login event.

FWIW: Here's a screenshot of the current buggy result:

silent_refresh_timeout in sample app

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugFor tagging faulty or unexpected behavior.docsIssues that involve improving or adding documentation.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions