Know Your Toolset
open-menu closeme
Home
About
github twitter linkedin rss
  • Integration Testing for ASP.NET APIs (3/3) - Auth

    calendar Jan 25, 2024 · 7 min read · C# API ASP.NET Testing XUnit OAuth2 OIDC  ·
    Share on: twitter facebook linkedin copy

    Where's the code? Fully working examples for this code are in the 04-api-with-postgres-and-auth folder of the GitHub repo with the examples for this series of posts. In the previous post we got started with some basic integration tests. In this one we'll require authentication in the API and write tests to ensure …


    Read More
  • ASP.NET Core APIs: Getting Swashbuckle to work with Auth0

    calendar Jul 4, 2022 · 7 min read · ASP.NET Core API JWT OAuth2 Swagger Swashbuckle Auth0  ·
    Share on: twitter facebook linkedin copy
    ASP.NET Core APIs: Getting Swashbuckle to work with Auth0

    Background Using JWT bearer token authentication for your ASP.NET Core API projects is pretty standard stuff these days, and I've done it many times - mostly with tokens from Duende IdentityServer. When I tried to update the code and configuration to use Auth0 though, I kept getting a 401 response after authenticating …


    Read More
  • Secure Web APIs With Swagger, Swashbuckle, and OAuth2 (Part 4)

    calendar Sep 3, 2015 · 11 min read · ASP.NET API OAuth2  ·
    Share on: twitter facebook linkedin copy

    This article continues the process started in part 1 which concluded with us having an API that has both anonymous and secure methods that can be called, and a Swagger interface provided by Swashbuckle. For this post, I will be discussing how to secure the Swagger interface so that public / anonymous users cannot …


    Read More
  • Secure Web APIs With Swagger, Swashbuckle, and OAuth2 (Part 3)

    calendar Sep 1, 2015 · 8 min read · ASP.NET API OAuth2  ·
    Share on: twitter facebook linkedin copy
    Secure Web APIs With Swagger, Swashbuckle, and OAuth2 (Part 3)

    This article continues the process started in [part 1(https://knowyourtoolset.com/2015/08/secure-web-apis-with-swagger-swashbuckle-and-oauth2-part-1/)] which concluded with us having an API that has both anonymous and secure methods that can be called, and a Swagger interface provided by Swashbuckle. For this post, I …


    Read More
  • Secure Web APIs With Swagger, Swashbuckle, and OAuth2 (Part 2)

    calendar Aug 19, 2015 · 4 min read · ASP.NET API OAuth2  ·
    Share on: twitter facebook linkedin copy
    Secure Web APIs With Swagger, Swashbuckle, and OAuth2 (Part 2)

    This article continues the process started in part 1 which concluded with us having an API that has both anonymous and secure methods that can be called, and a Swagger interface provided by Swashbuckle. What remains now is the real meat of what I was trying to accomplish: Making sure we can use the Swagger interface …


    Read More
  • Secure Web APIs With Swagger, Swashbuckle, and OAuth2 (Part 1)

    calendar Aug 12, 2015 · 8 min read · ASP.NET API OAuth2  ·
    Share on: twitter facebook linkedin copy
    Secure Web APIs With Swagger, Swashbuckle, and OAuth2 (Part 1)

    I wanted to go down the path of creating a shiny new custom enterprise-grade API framework that includes the following features: Easy to navigate documentation and testability via a Swagger interface that can be tested/tried right on the site hosting the API Authenticated access for customers and clients using an …


    Read More

Erik Dahl photo

Erik Dahl

Technologist, lifelong learner, Microsoft MVP, Pluralsight author, seeker of continuous incremental improvement.
Read More

Featured Posts

  • Hello, AI World and Streaming Content Between ASP.NET APIs and Angular
  • .NET Templates with Optional Content
  • Creating Useful .NET Templates
  • Add K8s Cluster to Windows Terminal
  • Moving Authentication From an ASP.NET Site Into IdentityServer4
  • Comparing OpenAPI / Swagger, GraphQL, and gRPC
  • Guiding Principles for Programmers

Recent Posts

  • Hello, AI World and Streaming Content Between ASP.NET APIs and Angular
  • .NET Templates with Optional Content
  • Using Shared Logging Levels with .NET Aspire
  • A Great Prompt Experience
  • Visual Studio Tips and Tricks
  • Using WireMock in Integration Tests for ASP.NET Core APIs
  • Code Coverage Reports for .NET Projects
  • Integration Testing for ASP.NET APIs (3/3) - Auth

Tags

ASP.NET 26 C# 21 API 12 .NET 8 OAUTH2 6 TESTING 5 XUNIT 5 ADO.NET 3 ASPIRE 3 AUTHENTICATION 3 DEVELOPMENT 3 ASP.NET-IDENTITY 2 AUDIO 2 AZURE-DEVOPS 2
All Tags
.NET8 ADO.NET3 ANALYTICS1 ANGULAR1 API12 ASP.NET26 ASP.NET-CORE1 ASP.NET-IDENTITY2 ASPIRE3 AUDIO2 AUTH01 AUTHENTICATION3 AZURE1 AZURE-DEVOPS2 AZURE-OPENAI1 BFF2 BLOGGING2 BOGUS2 C#21 CAMTASIA2 CODE-COVERAGE1 COVERLET1 DAPPER1 DEVELOPMENT3 DOCUMENTATION1 DUENDE-SOFTWARE2 ELK1 FETCH-API1 FLUENTVALIDATION1 GITHUB-ACTIONS1 HUGO1 ICONS1 IDENTITYSERVER2 JWT1 KENDO-UI2 KIDS1 KUBERNETES2 LAUNCHDARKLY1 LOGGING2 NBOMBER2 NERD-FONTS1 OAUTH26 OH-MY-POSH2 OIDC1 OPEN-TELEMETRY1 OPENAI1 PI-SENSE-HAT1 POSTGRES1 POSTGRESQL1 RASBERRYPI1 READ-THE-DOCS1 SERILOG1 SQL2 SQL-SERVER1 SQLITE2 SWAGGER1 SWASHBUCKLE1 SYSTEM.COMMANDLINE1 TEMPLATES2 TESTCONTAINERS1 TESTING5 TYPESCRIPT2 VIDEOS1 VISUAL-STUDIO1 WINDOWS-TERMINAL1 WIREMOCK1 XUNIT5
[A~Z][0~9]
Know Your Toolset

Copyright 2015-  KNOW YOUR TOOLSET. All Rights Reserved

to-top