Skip to content

New token not fetched when tenant ID changes #35086

@heaths

Description

@heaths

public bool RequestRequiresNewToken(TokenRequestContext context) =>
(context.Scopes != null && !context.Scopes.AsSpan().SequenceEqual(CurrentContext.Scopes.AsSpan())) ||
(context.Claims != null && !string.Equals(context.Claims, CurrentContext.Claims));

I'm working on a test for when a Key Vault changes tenants and everything works up until this method is called after the tenant changes, so a new token for the new tenant is never created. Seems this should also check if the tenant has changed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Azure.IdentityClientThis issue is related to a non-management package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions