Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ProcessMaker/processmaker
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: develop
Choose a base ref
...
head repository: ProcessMaker/processmaker
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: epic/FOUR-32115
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 2 files changed
  • 1 contributor

Commits on Jul 9, 2026

  1. Add Microsoft Graph token provider and tests

    Introduce MicrosoftGraphTokenProvider to obtain and cache OAuth2 client-credentials tokens from Microsoft Graph. The provider validates required credentials, posts to the tenant token endpoint via Guzzle, throws a RuntimeException on missing creds or HTTP errors (propagating server error messages), and caches the access token for ~50 minutes using a server-specific cache key. Includes unit tests that assert exception behavior for missing credentials and mock Guzzle to verify token request parameters and caching behavior.
    sanjacornelius committed Jul 9, 2026
    Configuration menu
    Copy the full SHA
    d099c01 View commit details
    Browse the repository at this point in the history
  2. Inject HTTP client into token provider

    Add an optional Guzzle Client dependency to MicrosoftGraphTokenProvider so an HTTP client can be injected for testing. The constructor now accepts ?Client $httpClient and the provider uses $this->httpClient ?? new Client() when posting for tokens. Update the unit test to mock GuzzleHttp\Client (remove overload-based mock and separate-process annotations), import Client, and pass the mocked client into the provider. This enables dependency injection and simpler, more reliable tests.
    sanjacornelius committed Jul 9, 2026
    Configuration menu
    Copy the full SHA
    7271738 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2026

  1. Use real PSR-7 Response in test

    Replace Mockery-based response mocks in MicrosoftGraphTokenProviderTest with an actual GuzzleHttp\Psr7\Response instance. Simplifies the test by providing a real PSR-7 response (200) with a JSON body and removes the need to mock getBody()/getContents() and getStatusCode(). Added the Response use statement.
    sanjacornelius committed Jul 10, 2026
    Configuration menu
    Copy the full SHA
    b0d14ca View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2026

  1. Merge pull request #8901 from ProcessMaker/subtask/FOUR-32164

    Add Microsoft Graph token provider with client credentials flow and unit tests
    sanjacornelius authored Jul 13, 2026
    Configuration menu
    Copy the full SHA
    c1ac2ad View commit details
    Browse the repository at this point in the history
Loading