René's URL Explorer Experiment


Title: OpenAPI 3.2: `oauth2MetadataUrl` Missing from `Microsoft.OpenApi.OpenApiSecurityScheme` · Issue #2694 · microsoft/OpenAPI.NET · GitHub

Open Graph Title: OpenAPI 3.2: `oauth2MetadataUrl` Missing from `Microsoft.OpenApi.OpenApiSecurityScheme` · Issue #2694 · microsoft/OpenAPI.NET

X Title: OpenAPI 3.2: `oauth2MetadataUrl` Missing from `Microsoft.OpenApi.OpenApiSecurityScheme` · Issue #2694 · microsoft/OpenAPI.NET

Description: Summary Microsoft.OpenApi can serialize OpenAPI 3.2 documents, but the Security Scheme Object is missing support for the OpenAPI 3.2 field: oauth2MetadataUrl (type: string, format: uri, applies to type: oauth2) This prevents consumers fr...

Open Graph Description: Summary Microsoft.OpenApi can serialize OpenAPI 3.2 documents, but the Security Scheme Object is missing support for the OpenAPI 3.2 field: oauth2MetadataUrl (type: string, format: uri, applies to ...

X Description: Summary Microsoft.OpenApi can serialize OpenAPI 3.2 documents, but the Security Scheme Object is missing support for the OpenAPI 3.2 field: oauth2MetadataUrl (type: string, format: uri, applies to ...

Opengraph URL: https://github.com/microsoft/OpenAPI.NET/issues/2694

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"OpenAPI 3.2: `oauth2MetadataUrl` Missing from `Microsoft.OpenApi.OpenApiSecurityScheme`","articleBody":"## Summary\n\n`Microsoft.OpenApi` can serialize OpenAPI **3.2** documents, but the **Security Scheme Object** is missing support for the OpenAPI 3.2 field:\n\n- `oauth2MetadataUrl` (type: `string`, format: `uri`, applies to `type: oauth2`)\n\nThis prevents consumers from producing spec-complete OpenAPI 3.2 documents when describing OAuth2 servers using RFC 8414 metadata.\n\n## Spec Reference\n\nOpenAPI 3.2.0 adds `oauth2MetadataUrl` to the Security Scheme Object. citeturn0search0turn0search10\nThe field is defined as a URL to the OAuth2 authorization server metadata (RFC 8414). citeturn0search5turn0search2\n\n## Current Behavior\n\n`OpenApiSecurityScheme` does not expose a property for `oauth2MetadataUrl`, and the serializer does not emit it for OpenAPI 3.2 output.\n\nEven when using `SerializeAsV32`, the switch over `SecuritySchemeType` only handles:\n\n- `apiKey`: `name`, `in`\n- `http`: `scheme`, `bearerFormat`\n- `oauth2`: `flows`\n- `openIdConnect`: `openIdConnectUrl`\n\nThere is no native way to model and serialize `oauth2MetadataUrl` other than vendor extensions.\n\n## Expected Behavior\n\nWhen `Type == SecuritySchemeType.OAuth2` and the target spec version is **OpenAPI 3.2+**, the library should allow setting and serializing:\n\n```yaml\ncomponents:\n  securitySchemes:\n    oauth:\n      type: oauth2\n      oauth2MetadataUrl: https://idp.example.com/.well-known/oauth-authorization-server\n      flows:\n        clientCredentials:\n          tokenUrl: https://idp.example.com/oauth/token\n          scopes: {}\n```\n\n## Proposed API Change\n\nAdd a nullable `Uri` property to `OpenApiSecurityScheme`:\n\n```csharp\npublic Uri? OAuth2MetadataUrl { get; set; }\n```\n\n### Serialization (OpenAPI 3.2+ only)\n\nIn `SerializeInternal(...)`, under `case SecuritySchemeType.OAuth2:` write the property **before/after** flows:\n\n```csharp\nif (version \u003e= OpenApiSpecVersion.OpenApi3_2)\n{\n    writer.WriteProperty(\"oauth2MetadataUrl\", OAuth2MetadataUrl?.ToString());\n}\nwriter.WriteOptionalObject(OpenApiConstants.Flows, Flows, callback);\n```\n\n### Parsing / Reading\n\nIf the library includes readers/deserializers for security schemes, they should also recognize `oauth2MetadataUrl` when parsing OpenAPI 3.2 documents into `OpenApiSecurityScheme`.\n\n## Why This Matters\n\nOAuth2 Authorization Server Metadata (RFC 8414) is widely used to publish endpoints and capabilities. OpenAPI 3.2 explicitly supports linking to that metadata; without this field, OpenAPI 3.2 documents generated with `Microsoft.OpenApi` cannot fully represent the spec-defined OAuth2 security scheme information. citeturn0search5turn0search7\n\n## Workarounds Today\n\n- Use `Extensions[\"x-oauth2MetadataUrl\"] = ...` (non-standard)\n- Put the URL in `description` (lossy / not machine-readable)\n\n## Request\n\nPlease add first-class support for `oauth2MetadataUrl` to `OpenApiSecurityScheme` and include it in OpenAPI 3.2 serialization/parsing for OAuth2 security schemes.\n\nThank you!\n","author":{"url":"https://github.com/mdaneri","@type":"Person","name":"mdaneri"},"datePublished":"2026-01-20T21:12:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2694/OpenAPI.NET/issues/2694"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0a69f1b4-f291-2a73-2d57-1fd056ad2181
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id862E:25FBBC:1991E9B:21640B2:69817914
html-safe-noncedcc824af9ef835d0a07acd966fdfc3a4fd222dab4d2c315917e2b8c36ce5fb6e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjJFOjI1RkJCQzoxOTkxRTlCOjIxNjQwQjI6Njk4MTc5MTQiLCJ2aXNpdG9yX2lkIjoiMzc2NDU3MzUyMjg2OTk3NTMxNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac108f705b6c21aca5a2f3767ea8e99e46f7cdb3acc8f76fdd996c6ec4dc74bc64
hovercard-subject-tagissue:3835484202
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/OpenAPI.NET/2694/issue_layout
twitter:imagehttps://opengraph.githubassets.com/777f43a4145bd9e2bdc72559fc0ac1418bbd99d1b255afd2c1331cd8251c1993/microsoft/OpenAPI.NET/issues/2694
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/777f43a4145bd9e2bdc72559fc0ac1418bbd99d1b255afd2c1331cd8251c1993/microsoft/OpenAPI.NET/issues/2694
og:image:altSummary Microsoft.OpenApi can serialize OpenAPI 3.2 documents, but the Security Scheme Object is missing support for the OpenAPI 3.2 field: oauth2MetadataUrl (type: string, format: uri, applies to ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemdaneri
hostnamegithub.com
expected-hostnamegithub.com
Nonee137814e266030874fd2c86863529d0622b13889eeda04148c57654b6ea84ad6
turbo-cache-controlno-preview
go-importgithub.com/microsoft/OpenAPI.NET git https://github.com/microsoft/OpenAPI.NET.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id97175798
octolytics-dimension-repository_nwomicrosoft/OpenAPI.NET
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id97175798
octolytics-dimension-repository_network_root_nwomicrosoft/OpenAPI.NET
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasedd58d68a7813bbec9c91422c8c35f4af33832d70
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues/2694#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FOpenAPI.NET%2Fissues%2F2694
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2FOpenAPI.NET%2Fissues%2F2694
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2FOpenAPI.NET
Reloadhttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues/2694
Reloadhttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues/2694
Reloadhttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues/2694
microsoft https://patch-diff.githubusercontent.com/microsoft
OpenAPI.NEThttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2FOpenAPI.NET
Fork 282 https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2FOpenAPI.NET
Star 1.6k https://patch-diff.githubusercontent.com/login?return_to=%2Fmicrosoft%2FOpenAPI.NET
Code https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET
Issues 24 https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues
Pull requests 2 https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/pulls
Discussions https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/discussions
Actions https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/actions
Projects 0 https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/projects
Models https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/models
Wiki https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/wiki
Security 0 https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/security
Insights https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/pulse
Code https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET
Issues https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues
Pull requests https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/pulls
Discussions https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/discussions
Actions https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/actions
Projects https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/projects
Models https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/models
Wiki https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/wiki
Security https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/security
Insights https://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/microsoft/OpenAPI.NET/issues/2694
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/microsoft/OpenAPI.NET/issues/2694
#2706https://github.com/microsoft/OpenAPI.NET/pull/2706
OpenAPI 3.2: oauth2MetadataUrl Missing from Microsoft.OpenApi.OpenApiSecuritySchemehttps://patch-diff.githubusercontent.com/microsoft/OpenAPI.NET/issues/2694#top
#2706https://github.com/microsoft/OpenAPI.NET/pull/2706
https://github.com/mdaneri
https://github.com/mdaneri
mdanerihttps://github.com/mdaneri
on Jan 20, 2026https://github.com/microsoft/OpenAPI.NET/issues/2694#issue-3835484202
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.