oauth.ts ×1
Frontier kind: Code frontier
unlabeled · c_3113ab89222b
42 tests · 4859 LOC · 22 files · introduces 0 tests · 2 LOC · 1 file
Introduces — evidence that enters the hierarchy at this concept
Code
1 range 2 lines · 1 files
Tests
0 tests
Contains — complete concept membership
Neighbourhood graph
The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.
Focus concept
Ancestors (broader)
Descendants (narrower)
Introduced files
Introduced tests
Introduced files, introduced tests, and structurally relevant concept specialization
In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.
Graph controls are ready.
Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.
JavaScript is disabled; use the native relationship evidence on this page to explore the same evidence.
Native relationship evidence
Every exact file and test below is linked only from the concept that introduces it.
oauth.ts ×1 — Focused concept
Introduced files:
extHostMcp.test|title=ExtHostMcp IAuthMetadata properties should expose readonly properties|occurrence=1, extHostMcp.test|title=ExtHostMcp createAuthMetadata should create IAuthMetadata with fetched server metadata|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should handle multiple Bearer challenges and use first scope|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should return false when scopes are the same|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should return true and update scopes when WWW-Authenticate header contains new scopes|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should return false when scopes are same but in different order|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should return true when updating from defined scopes to undefined (no scope in header)|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp createAuthMetadata should handle non-401 status codes in update()|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should ignore non-Bearer schemes|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.test|title=ExtHostMcp IAuthMetadata update() should return true when updating from undefined scopes to defined scopes|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
extHostMcp.ts ×2 — Ancestor (broader)
Introduced files:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
extHostMcp.ts ×4 — Ancestor (broader)
Introduced files:
extHostMcp.test|title=ExtHostMcp createAuthMetadata should use scopes from WWW-Authenticate header when resource metadata has none|occurrence=1, extHostMcp.test|title=ExtHostMcp createAuthMetadata should use scopes from WWW-Authenticate header even when resource metadata has scopes_supported|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostMcp.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
extHostMcp.ts ×4 — Ancestor (broader)
Introduced files:
extHostMcp.test|title=ExtHostMcp createAuthMetadata should pass launch headers when fetching metadata from same origin|occurrence=1 — Ancestor (broader)
Introduced tests:
extHostMcp.ts ×5 — Ancestor (broader)
Introduced files:
extHostMcp.test|title=ExtHostMcp createAuthMetadata should handle invalid JSON in resource metadata response|occurrence=1 — Ancestor (broader)
Introduced tests:
oauth.test|title=OAuth fetchResourceMetadata should fallback to root discovery when explicit resourceMetadataUrl validation fails|occurrence=1 — Ancestor (broader)
Introduced tests:
oauth.test|title=OAuth fetchResourceMetadata should include error details in message with resource values|occurrence=1, oauth.test|title=OAuth fetchResourceMetadata should throw error when resource property does not match target resource|occurrence=1 — Ancestor (broader)
Introduced tests:
oauth.test|title=OAuth fetchResourceMetadata should throw error when response is not valid resource metadata|occurrence=1 — Ancestor (broader)
Introduced tests:
oauth.test|title=OAuth fetchResourceMetadata should throw error when scopes_supported is not an array|occurrence=1 — Ancestor (broader)
Introduced tests:
oauth.test|title=OAuth fetchResourceMetadata should reject PRM with full path resource when using root discovery fallback|occurrence=1 — Ancestor (broader)
Introduced tests:
oauth.ts ×1 — Ancestor (broader)
Introduced files:
oauth.test|title=OAuth fetchResourceMetadata should fallback to well-known URI at root when path version fails|occurrence=1, oauth.test|title=OAuth fetchResourceMetadata should accept root URL in PRM resource when using root discovery fallback (no trailing slash)|occurrence=1, +1 — Ancestor (broader)
Introduced tests:
oauth.test|title=OAuth fetchResourceMetadata should reject PRM with root resource when using path-appended discovery|occurrence=1 — Ancestor (broader)
Introduced tests:
oauth.test|title=OAuth fetchResourceMetadata should handle fetchImpl throwing network error and continue to next URL|occurrence=1 — Ancestor (broader)
Introduced tests:
oauth.ts ×1 — Ancestor (broader)
Introduced files:
oauth.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
oauth.test|title=OAuth fetchResourceMetadata should handle metadata with optional fields|occurrence=1, oauth.test|title=OAuth fetchResourceMetadata should normalize URLs when comparing resource values|occurrence=1, +4 — Ancestor (broader)
Introduced tests:
oauth.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
oauth.ts ×1 — Ancestor (broader)
Introduced files:
Introduced tests:
oauth.ts ×1 — Ancestor (broader)
Introduced files:
oauth.ts ×1 — Ancestor (broader)
Introduced files:
oauth.ts ×1 — Ancestor (broader)
Introduced files:
oauth.ts ×1 — Ancestor (broader)
Introduced files:
oauth.ts ×1 — Descendant (narrower)
Introduced files:
oauth.ts ×4 — Descendant (narrower)
Introduced files:
oauth.ts ×19 — Descendant (narrower)
Introduced files:
buffer.ts ×42 — Descendant (narrower)
Introduced files:
uri.test|title=URI URI#file, win-speciale|occurrence=1, charCode.test|title=CharCode has good values|occurrence=1, +2 — Descendant (narrower)
Introduced tests:
utils.ts ×3 — Descendant (narrower)
Introduced files:
lifecycle.ts ×2 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×4 — Descendant (narrower)
Introduced files:
lifecycle.ts ×6 — Descendant (narrower)
Introduced files:
lazy.ts ×1 — Descendant (narrower)
Introduced files:
lazy.ts ×3 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
lifecycle.ts ×1 — Descendant (narrower)
Introduced files:
map.ts ×97 — Descendant (narrower)
Introduced files:
Introduced tests
Every collected test enters the hierarchy at exactly one concept.
No tests are introduced at this concept. Its intent tests are introduced by other concepts.
Introduced code
Every collected source range enters the hierarchy at exactly one concept.
1 file ranked by introduced lines: 2 introduced LOC across 1 ranges.
Expand a file to inspect source; the > gutter marks introduced lines.
src/vs/base/common/oauth.ts 2 introduced LOC · 1 range
Open complete file
1232
throw new Error ( `Failed to fetch resource metadata from ${ prmUrl } : ${ response . status } ${ errorText } ` );
1233
}
1235
>
const body = await response . json ();
1236
if ( isAuthorizationProtectedResourceMetadata ( body )) {
1237
// Validate that the resource matches the target resource