Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
C# 8 and .NET Core 3 Projects Using Azure

You're reading from   C# 8 and .NET Core 3 Projects Using Azure Build professional desktop, mobile, and web applications that meet modern software requirements

Arrow left icon
Product type Paperback
Published in Dec 2019
Publisher
ISBN-13 9781789612080
Length 528 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Jas Rademeyer Jas Rademeyer
Author Profile Icon Jas Rademeyer
Jas Rademeyer
Dirk Strauss Dirk Strauss
Author Profile Icon Dirk Strauss
Dirk Strauss
Paul Michaels Paul Michaels
Author Profile Icon Paul Michaels
Paul Michaels
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Ebook Manager and Catalogue App - .NET Core for Desktop FREE CHAPTER 2. Task Bug Logging ASP.NET Core MVC App Using Cosmos DB 3. ASP.NET Azure SignalR Chat Application 4. Web Research Tool with Entity Framework Core 5. Building a Twitter Automated Campaign Manager Using Azure Logic Apps and Functions 6. Stock Checker Using Identity Server and OAuth 2 7. Building a Photo Storage App Using a Windows Service and Azure Storage 8. A Load-Balanced Order Processing Microservice Using Docker and Azure Kubernetes Service 9. Emotion Detector Mobile App - Using Xamarin Forms and Azure Cognitive Services 10. Eliza for the 21st Century - UWP and the MS Bot Framework 11. WebAssembly 12. Other Books You May Enjoy

IdentityServer

As it currently stands, we have an identity server that runs; however, we can run our client without any credentials and use our application. Before we add resources, clients, or users to identity server, the next step is to have it refuse us entry (because we haven't set any of these things up).

Securing the API

In order to secure the API, we need to do just two things (neither of which requires IdentityServer and one is already done for us!). The first is that we need to tell ASP.NET Core that we want to use authorization. In our startup file, we're already calling AddControllers. Because ASP.NET Core is now open source, we can simply look at what this does for us:

private static IMvcCoreBuilder...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image