[PR #2492] [MERGED] AZ: Introduce a "credential version" to force old credentials to be deleted #24955

Open
opened 2026-01-31 09:06:22 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/2492
Author: @DHowett-MSFT
Created: 8/21/2019
Status: Merged
Merged: 8/21/2019
Merged by: @DHowett-MSFT

Base: masterHead: dev/duhowett/azinine


📝 Commits (1)

  • 7cb3790 AZ: Introduce a "credential version" to force old credentials to be deleted

📊 Changes

2 files changed (+34 additions, -5 deletions)

View changed files

📝 src/cascadia/TerminalConnection/AzureConnection.cpp (+33 -5)
📝 src/cascadia/TerminalConnection/AzureConnectionStrings.h (+1 -0)

📄 Description

When we change the client ID, we're going to need to force people to log
in again.

We can do that either by:

  1. Trying to log in and refresh the user's token and failing (displaying
    a cryptic message like "you aren't on the internet, please get on the
    internet"), OR by...
  2. Getting out ahead of it, detecting when we would have failed for client
    ID (and other) reasons, and not trying at all.

This is option 2.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/2492 **Author:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Created:** 8/21/2019 **Status:** ✅ Merged **Merged:** 8/21/2019 **Merged by:** [@DHowett-MSFT](https://github.com/DHowett-MSFT) **Base:** `master` ← **Head:** `dev/duhowett/azinine` --- ### 📝 Commits (1) - [`7cb3790`](https://github.com/microsoft/terminal/commit/7cb379056be84e6d61099c4c00a2ba932dbadc9b) AZ: Introduce a "credential version" to force old credentials to be deleted ### 📊 Changes **2 files changed** (+34 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalConnection/AzureConnection.cpp` (+33 -5) 📝 `src/cascadia/TerminalConnection/AzureConnectionStrings.h` (+1 -0) </details> ### 📄 Description When we change the client ID, we're going to need to force people to log in again. We can do that either by: 1. Trying to log in and refresh the user's token and failing (displaying a cryptic message like "you aren't on the internet, please get on the internet"), **OR** by... 2. Getting out ahead of it, detecting when we would have failed for client ID (and other) reasons, and _not trying at all._ This is option 2. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:06:22 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#24955