Secure data at rest and in transit20% of the exam

HTTP authentication with Basic Auth and OAuth2

Configure Basic authentication and OAuth grants for HTTP clients, map token response formats, and manage renewal, callback transport and token-manager contexts.

Official exam objective
Implement API invocations authenticated by Basic Auth or OAuth2 with HTTP or REST connectors.

~7 min read · 12 practice questions ·

What the exam expects

  • Configure Basic authentication and its challenge behavior on HTTP Request.
  • Assign OAuth authorization, callback and token endpoints to their actual roles.
  • Match token extraction and refresh conditions to the provider contract.
  • Manage stored OAuth information without confusing local context with remote revocation.

Key terms: a grant is an authorization method; a token endpoint issues credentials; a callback receives the authorization result; an extractor reads token-response fields; a token manager stores an OAuth context.

Key facts

Basic challenge
Detail
Preemptive controls whether the initial request carries credentials.
Local initiation
Detail
Local Authorization Url starts user authorization in Mule.
Callback reuse
Detail
Supply both listener configuration and callback path.
Scope syntax
Detail
The connector field uses a comma-separated string.
Token shape
Detail
Match content interpretation and selector to the provider.
Renewal boundary
Detail
Refresh predicates inspect the protected-call response.
Client initialization
Detail
Token acquisition is attempted during deployment.
Owner invalidation
Detail
Select the actual manager and intended owner context.
Sources for this section (3)
  • Why must an expiry diagnostic avoid assuming the same duration across providers?
  • When a contract test inspects Retrieve Expires In, which documented output type should it expect?
  • What does Output Mime Type describe on an OAuth retrieval operation?

The questions are free to read. Answers with their sources and self-grading are included with the pack.

Keep reading with the MuleSoft Developer II pack

  • Core concepts
  • Exam traps
  • Worked scenario

The pack includes:

  • All 29 lessons of the MuleSoft Developer II guide, with reading progress
  • Interactive decision walks and step-by-step sequence steppers
  • Practice exams purchase adds inline bank questions and topic practice (12 questions for this lesson)
  • An official source cited for every claim
  • An AI tutor that answers from the guide
  • Choose guide-only, practice-only, or save $4 with both

Practice for the MuleSoft Developer II exam