这是indexloc提供的服务,不要输入任何密码
Skip to content

When trying to refresh the access token after a user has been signed out on the server, the connect/token endpoint get's spammed. #1265

@dpcodes

Description

@dpcodes

We use IdentityServer4 as our IDP. We also have an SSOLifetime set meaning that the user needs to re-authenticate after X amount of time.

The silent refresh works perfectly, except when it tries to refresh after passing the SSO expiration. It will redirect to the SessionLost component like expected, but then it will completely spam the connect/token endpoint.

The error in appinsight is simply that the refresh token is invalid, as expected since when the IDP logs you out, it also revokes all your tokens.

First, everything goes well, the first refresh works:
image

But then, once it tries to refresh after the SSO expires:
image
It seems to be stuck in a loop of begin > error

Configuration is nothing special:
image

Expected Behavior:
I would expect once we hit the SessionLost component that we either wait for a refresh of the browser to retrigger the flow, or query the connect endpoint at a set interval, but not crazy fast like it does right now.

Not exactly sure why it's looping like such, was hoping you'd have more insight.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions