Introduce Issuer handling in the Authentication stack (#248948)

Mostly plumbing... this enables:
```
vscode.authentication.getSession('microsoft', scopes, { issuer: "https://login.microsoftonline.com/common/v2.0" });
```
And the respective API for an auth providers to handle it being passed in.

This props up work in MCP land which needs a way to map an issuer to an auth provider... but I certainly see utility outside of that space.

Fixes https://github.com/microsoft/vscode/issues/248775#issuecomment-2876711396
This commit is contained in:
Tyler James Leonhardt
2025-05-14 14:02:15 -07:00
committed by GitHub
parent 1e03c9074c
commit 86efdcd2c1
22 changed files with 365 additions and 69 deletions

View File

@@ -15,7 +15,8 @@
"activationEvents": [],
"enabledApiProposals": [
"idToken",
"nativeWindowHandle"
"nativeWindowHandle",
"authIssuers"
],
"capabilities": {
"virtualWorkspaces": true,
@@ -31,7 +32,10 @@
"authentication": [
{
"label": "Microsoft",
"id": "microsoft"
"id": "microsoft",
"issuerGlobs": [
"https://login.microsoftonline.com/*/v2.0"
]
},
{
"label": "Microsoft Sovereign Cloud",