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
Azure Active Directory for Secure Application Development

You're reading from   Azure Active Directory for Secure Application Development Use modern authentication techniques to secure applications in Azure

Arrow left icon
Product type Paperback
Published in May 2022
Publisher Packt
ISBN-13 9781838646509
Length 268 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Sjoukje Zaal Sjoukje Zaal
Author Profile Icon Sjoukje Zaal
Sjoukje Zaal
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Part 1: Getting Started with the Microsoft Identity Platform
2. Chapter 1: Microsoft Identity Platform Overview FREE CHAPTER 3. Chapter 2: Azure AD Application Model 4. Chapter 3: Application Types and User Consent 5. Part 2: Authentication and Protocols
6. Chapter 4: The Basics and Evolution of Authentication 7. Chapter 5: Securing Applications with OAuth 2.0, OpenID Connect, and MSAL 8. Chapter 6:Building Secure Services Using the Microsoft Graph API 9. Part 3: Azure AD B2C
10. Chapter 7: Introducing Azure Active Directory B2C 11. Chapter 8: Advanced Features of Azure AD B2C 12. Chapter 9: Azure AD B2C Custom Policies 13. Other Books You May Enjoy

Queries, batching, throttling, and paging

In the previous demo, we already made a very basic request to the /users endpoint of Microsoft Graph. Now we will focus on some different types of queries and also learn how to do batching and throttling.

Let's start with some queries that you can create in the next section.

Queries

You can create all sorts of queries using various endpoints in the Microsoft Graph API. Let's make a request to retrieve all of the different mail folders that the signed-in user has access to. For this, we are going to use the /mailfolders endpoint:

  1. Make sure you are signed in using the preferred user account. Then, make sure the GET REST API method is selected. Add the following URL to the request bar: https://graph.microsoft.com/v1.0/me/mailfolders.
  2. Click on Run query. The response will look similar to the following example:
    {
        "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users...
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