Skip to content

Clear-AzContext Cannot Clear TokenCache of OIDC Auth Flow #23852

Open
@msJinLei

Description

@msJinLei

Description

When you run Clear-AzContext, the token from user Auth flow can be cleared and the token from OIDC Auth flow cannot be cleared.

Issue script & Debug output

PS> Connect-AzAccount -ServicePrincipal -ApplicationId $appId $FederatedToken $token $TenantId $tenantId
PS> Clear-AzContext

The token cache is still there

Environment data

The issue can be reproduce across the different platforms

Module versions

The issue can be reproduce across the different Az.Accounts versions

Error output

No response

Metadata

Metadata

Assignees

Labels

AccountsIssues in Az.Accounts except authentication relatedTrackingWe will track status and follow internallybugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions