Skip to content

Conversation

@antrix1989
Copy link
Contributor

@antrix1989 antrix1989 commented Feb 7, 2026

Proposed changes

  1. Configure headers before calling the API (for example, at app launch):
    func application(_ application: UIApplication,
                     didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        
        MSALNativeAuthHTTPConfig.customHeaders = [
            "customer_header_1 ": "value_1",
            "customer_header_2 ": "value_2",
            "x-client-DM": "OOOOO" // Will be ignored: conflicts with a header set internally by the MSAL SDK.
        ]
        

        return true
    }

  1. Call the SDK APIs -- headers will be added to all network requests

Type of change

  • Feature work
  • Bug fix
  • Documentation
  • Engineering change
  • Test
  • Logging/Telemetry

Risk

  • High – Errors could cause MAJOR regression of many scenarios. (Example: new large features or high level infrastructure changes)
  • Medium – Errors could cause regression of 1 or more scenarios. (Example: somewhat complex bug fixes, small new features)
  • Small – No issues are expected. (Example: Very small bug fixes, string changes, or configuration settings changes)

Additional information

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant