Skip to content
This repository was archived by the owner on Mar 3, 2022. It is now read-only.
This repository was archived by the owner on Mar 3, 2022. It is now read-only.

SilentRenew, auth_time in id_token does not match original auth_time #1058

Closed
@Taats

Description

@Taats

The title says it all, when i do a silent renew the call completes and the error i get is that "auth_time in id_token does not match original auth_time".

I'm using Azure B2C and this is how my UserManager is being set up:

private createUserManagerSettingsData(authority: string, profile: string): UserManagerSettings {
        return {
            authority: "https://localhost:5001/api/oidc/B2C_1_signupsignin1",
            client_id: this.data.client_id,
            redirect_uri: "https://localhost:5001/oidc-signin",
            response_type: "code",
            scope: "openid offline_access",
            post_logout_redirect_uri: "https://localhost:5001/oidc-signout",
            filterProtocolClaims: true,
            loadUserInfo: false,
            userStore: new WebStorageStateStore({ store: window.localStorage }),
            automaticSilentRenew: true,
            includeIdTokenInSilentRenew: true,
            silent_redirect_uri: "http://localhost:5001/assets/silent-callback.html",
            accessTokenExpiringNotificationTime: 60 * 4,
        };
    }

When silent renew kicks in the following error occurs:
UserManager._validateIdTokenFromTokenRefreshToken: auth_time in id_token does not match original auth_time

If anyone can point me in the right direction then that would be great since im struggling with this for a few days now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions