All missions
MARK I: IDENTITY ARMOR · MISSION 03Supplementary example

Authenticate API Plugin

Follow Nonoki’s repair-shop example of a secured API plugin for a Microsoft 365 Copilot declarative agent, comparing API keys with OAuth 2.0 delegated access. This supplementary application example connects to identity-security concepts in SC-500 but is not presented as an exact named exam objective or a complete Copilot implementation guide.

16:03 Applied · API familiarity recommended Video · Exercise · Learning check
Watch on YouTube
MISSION BRIEFING

What you’ll work on

  • Compare a shared API key with OAuth 2.0 delegated access when deciding whether an API needs the signed-in user’s identity.
  • Separate credential material from a vault registration identifier and describe what belongs in a plugin manifest.
  • Map an agent-to-API authentication flow and identify the licensing, authorization, and deployment prerequisites for a real implementation.
KEEP THESE IDEAS CLOSE

Your revision notes

01

Supplementary, not a named objective

The official SC-500 study guide includes application identities, OAuth, and managed identities. This Microsoft 365 Copilot plugin scenario is a supplementary applied example, not an assertion that this specific plugin-building workflow is an exact named exam objective.

02

A key is not a user identity

A shared API key authenticates a configured integration using the service’s key scheme; it does not inherently establish which user is acting. OAuth delegated access can support calls on behalf of a signed-in user within consented permissions, and the API must still validate tokens and enforce authorization.

03

Secret material stays out of the manifest

In the demonstrated Microsoft 365 vault approach, the manifest references the authentication registration identifier rather than embedding the API key or OAuth client secret. The registration identifier is a reference, not the credential itself; never place real secrets in source control, screenshots, or this worksheet.

04

Tools are only part of the system

The episode uses VS Code, Microsoft 365 Agents Toolkit, and Azure Functions with Node.js. A working end-to-end lab also depends on suitable Copilot licensing, tenant permissions, API and OAuth setup, and possible Azure usage charges; the original companion design and practice questions below are neither the verbatim video lab nor actual exam questions.

PUT IT INTO PRACTICE

Inspect a mock repair-shop authentication flow

A companion exercise created for this hub, not a verbatim reproduction of the video’s lab.

Local mock design · optional licensed end-to-end extension

Before you begin

  • A text editor or paper; use invented repair orders, dummy identifiers, and placeholder credentials only.
  • Basic familiarity with HTTP requests, APIs, and the distinction between authentication and authorization; consult the linked plugin-authentication documentation.
  • Optional implementation: a dedicated test tenant with suitable Microsoft 365 Copilot licensing and permissions, VS Code with Microsoft 365 Agents Toolkit, the Node.js version required by the chosen sample, and an isolated Azure environment if deploying Azure Functions.
Costs & safety

The local worksheet and mock design have no cloud cost. A working Copilot/Azure implementation is optional and may require paid Copilot licenses, other eligible tenant licensing, and Azure hosting or usage charges; local tooling alone does not supply a working licensed Copilot environment.

  1. 1. Create a local worksheet for a fictional repair shop with two actions: read a generic public service catalog and read a customer’s private repair order. Use only invented records, then write whether each action needs an integration identity, a signed-in user identity, or no authentication based on your scenario’s requirements.
  2. 2. Draw two candidate flows in plain text: agent → configured key authentication → API, and signed-in user → OAuth authorization and consent → delegated access token → API. Mark where the API validates the presented credential or token and where it decides which repair orders the caller may read.
  3. 3. Build a mock configuration inventory, not a deployable manifest, with the labels API endpoint, authentication type, vault registration ID, API key, and OAuth client secret. Give references values such as REGISTRATION_ID_PLACEHOLDER and secrets values such as DUMMY_NOT_A_REAL_SECRET; mark which values are credential material and which are metadata or references.
  4. 4. Inspect your inventory as if reviewing a plugin manifest: retain only the relevant authentication registration reference in the mock manifest design, and put credential material in a separate box labelled managed vault registration. Cross-check the current Microsoft plugin-authentication documentation; do not guess manifest schema or use a real key.
  5. 5. Choose an authentication design for private repair orders and justify it. If access must reflect each signed-in customer’s permissions, describe a delegated OAuth flow and an API-side ownership check; explain why possession of one shared integration key alone would not identify the customer.
  6. 6. Optional: only after confirming current documentation, tenant eligibility, licenses, permissions, and a spending limit, adapt an official sample in the isolated environment with dedicated test app registrations and dummy repair data. Treat Copilot availability, OAuth configuration, vault registration, API deployment, and any development tunnel as separate prerequisites, not capabilities provided by installing an editor.
  7. 7. Produce a two-flow diagram, a redacted configuration inventory, and a short decision record for private repair-order access. Add a negative test describing how the API should reject a request for another customer’s order, and label results as designed, mocked, or actually observed.
Cleanup & close-out
  • Delete dummy secret values from any shared artifacts; if a real API key, client secret, or token was accidentally exposed, revoke or rotate it in its issuing system and remove the exposure rather than merely renaming the file.
  • If you implemented the optional extension, remove exercise-created plugin or agent registrations, vault authentication registrations, test app registrations, and test consent grants where appropriate; revoke exercise-specific keys and secrets before decommissioning the integration.
  • Stop local development servers and development tunnels, and remove any exercise-only tunnel access or public endpoints.
  • Delete exercise-only Azure Functions and other deployed resources after checking their scope, review outstanding usage charges and paid licensing, and retain only sanitized diagrams and decision records.
ONE QUESTION TO TAKE AWAY

Where does your API learn who the caller is, where does it decide which repair order that caller may access, and why is a vault registration ID not a substitute for either check?

READY TO TEST THE CONCEPTS?

Answer before ARIA does.

3 original scenarios. Immediate explanations. Retry whenever you need to.

Take the learning check
KEEP THE MOMENTUM

Review your study progress

View progress