Azure / Azure/azure-powershell

Every call acquires a new token!

Open
#29,857 2 comments 0 reactions 0 assignees View on GitHub
act-identity-squad bug customer-reported
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description

This PR disabled token caching: https://github.com/Azure/azure-powershell/pull/20336

It appears that this is still disabled? I am seeing new tokens being requested for every operation.

Here?
https://github.com/Azure/azure-powershell/blob/ee0cd2a70e331ab73c1104e1d52543eafdfd3425/src/Accounts/Authenticators/ServicePrincipalAuthenticator.cs#L53

### Issue script & Debug output

```PowerShell
n/a
```

### Environment data

```PowerShell
n/a
```

### Module versions

```PowerShell
n/a
```

### Error output

```PowerShell

```

Contributor guide

Open the contributing guide

Research direction

Start by reading src/Accounts/Authenticators/ServicePrincipalAuthenticator.cs at the linked line and review the token-caching change in Azure PowerShell PR 20336. Reproduce the reported behavior with repeated operations, then verify that subsequent operations reuse the token instead of requesting a new one each time.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, powershell
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.