Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

How to Handle O365 Shared Mailboxes in CI/CD Test Automation

Testing email workflows—like OTP verification, password resets, or automated notifications—is a core requirement for robust end-to-end (E2E) automation. However, automating Office 365 (O365) Shared Mailboxes via UI logins or legacy IMAP basic authentication is a nightmare. UI logins trigger MFA, IMAP basic auth is deprecated across Microsoft 365, and browser automation for Outlook web is…

Automating Office 365 Shared Mailboxes through UI logins or outdated IMAP authentication proves challenging. Microsoft Graph API offers a robust alternative by utilizing Client Credentials (App-Only) Flow within automation frameworks. This guide outlines the steps to implement this solution:

1. Configure Azure AD (Entra ID) permissions:

- Register an application in the Azure Portal.

- Add Microsoft Graph permissions: Mail.ReadWrite and Mail.Send.

- Grant Admin Consent for these permissions.

- Generate a Client Secret or upload a Certificate.

- Save Tenant ID, Client ID, and Client Secret in environment variables.

- Restrict app registration scope to the specific shared mailbox using ApplicationAccessPolicy.

2. Obtain OAuth 2.0 Tokens:

- Send a POST request to the Azure AD token endpoint.

- Include Client ID, Client Secret, and grant_type as client_credentials.

3. Interact with the Shared Mailbox:

- Retrieve the latest unread email for OTP or link extraction using a GET request.

- Parse the JSON response to extract verification links, tokens, or body text.

- Send emails through the shared mailbox using a POST request to the sendMail endpoint.

This approach provides fast, reliable, and flake-free email validation in CI/CD pipelines. Direct HTTP API execution is significantly faster than UI navigation, eliminates MFA blockers, and ensures consistent execution without relying on Outlook web interfaces or loading delays.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How I Built a Chrome Extension to Analyze Viral Social Content (Statly)

As a developer and creator, figuring out what actually drives engagement on social platforms like Instagram, TikTok, and X usually requires hours of manual digging or expensive analytics tools.

  • Developer creates Statly to analyze social content engagement
  • Tool distinguishes detailed content performance from high-level metrics
  • Statly available at trystatly.com with feedback submission option

Your dog walker says they went. This makes the walk say so too.

This is a submission for Weekend Challenge: Dog Days Edition TL;DR — A walker records the walk on their phone, the route is hashed in the browser, and a 147-byte attestation signed by the walker's own…

  • Dog walker records and hashes walk route on Solana devnet
  • Owner verifies walk trace by comparing computed hash with attestation
  • Verification process requires only two clicks without wallets or SOL

Raku: a language that counts to infinity (Part 1)

We've already seen that Raku understands characters like ∞ , and it would be logically that you can use them with ease, similar to any other constructs of the language.

  • Raku language handles infinite sequences using symbols like infinity (∞)
  • Infinite sequences can be defined with patterns and filtered by conditions
  • Lazy computations in Raku only calculate values as needed

More from Sunday 16 August →