---
title: "Discussion on \"How to do OAuth2 Authorization in ASP.NET Core for Swagger UI using Swashbuckle\" | Hashnode"
description: "Discussion on \"How to do OAuth2 Authorization in ASP.NET Core for Swagger UI using Swashbuckle\". A great article How to do OAuth2 Authorization in ASP.NET Core for Swagger UI using Swashbuckle\nGist\nservices.AddSwaggerGen(c =>\n{\n    c.SwaggerDoc(\"v1\", new OpenApiInfo { Title = \"My Service API\", Version = \"v1\" });\n    var fileName = typeof(Program..."
url: "https://hashnode.com/posts/how-to-do-oauth2-authorization-in-aspnet-core-for-swagger-ui-using-swashbuckle/6026c1584f6b4462941dfcb6"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to do OAuth2 Authorization in ASP.NET Core for Swagger UI using Swashbuckle](https://cwizsoftware.com/how-to-do-oauth2-authorization-in-aspnet-core-for-swagger-ui-using-swashbuckle?utm_source=hashnode&utm_medium=feed)

A great article How to do OAuth2 Authorization in ASP.NET Core for Swagger UI using Swashbuckle Gist services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo { Title = "My Service API", Version = "v1" }); var fileName = typeof(Program...

Feb 12, 2021 · 1 min read · cwizsoftware.com  
Updated May 5, 2023  
Read the article

-   [#aspnet-core](https://hashnode.com/tag/aspnet-core)

## Written by

[Xavier](https://hashnode.com/@xavier2021)

@xavier2021

  
[View profile](https://hashnode.com/@xavier2021)

C#

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
