#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
#ATAGTR2023 was the 8th Edition of Global Testing Retreat.
To know more about #ATAGTR2023, please visit: https://gtr.agiletestingalliance.org/
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
#Interactive Session by Nikhil Jain, "Catch All Mail With Graph" at #ATAGTR2023.
1. G lobal T esting Retreat
#ATAGTR2023
C A T C H A L L M A I L
W I T H G R A P H
Nikhil Jain
Global Testing Retreat
#ATAGTR2023
2. G lobal T esting Retreat
#ATAGTR2023
G lobal T esting Retreat
#ATAGTR2023
PROBLEM
S TO
SOLVE
Multifactor authentication
Require new email each time
to setup new test account
Clean up of account to reuse
the already use email id
Accessing Activation links
received without sharing the
credentials
Global Testing Retreat
#ATAGTR2023
3. G lobal T esting Retreat
#ATAGTR2023
G lobal T esting Retreat
#ATAGTR2023
P R O P O S E D
S O L U T I O N
C AT C H A L L
M A I L W I T H
G R A P H
Set up a catch all mailbox
• Creates thousands of valid email ids in blink of
any eye
• No need to setup any email id or account
All emails captured on single mailbox
• All emails accessible through one single mailbox
• No configuration needed
Accessing emails with Graph API
• Eliminates the need to share the credentials
• Retrieves OTP, Activation links or confirmation
links
Global Testing Retreat
#ATAGTR2023
4. G lobal T esting Retreat
#ATAGTR2023
G lobal T esting Retreat
#ATAGTR2023
OVERVIEW
&
ARCHITEC
TURE
• Any email sent with a prefix to
@mail.example.com is received on
single mailbox e.g.
catchall@mail.example.com
• Configure an app on
azure portal
authenticated to access
the mailbox
• Access the emails
through Graph API
using client credential
workflow
Global Testing Retreat
#ATAGTR2023
5. G lobal T esting Retreat
#ATAGTR2023
G lobal T esting Retreat
#ATAGTR2023
C AT C H A L L M A I L B O X
Global Testing Retreat
#ATAGTR2023
Note: Screenshot
taken from
https://support.hosting
er.com/en/articles/158
3450-how-to-set-up-a-
catch-all-for-hostinger-
email for demo
purpose
6. G lobal T esting Retreat
#ATAGTR2023
G lobal T esting Retreat
#ATAGTR2023
A Z U R E P O R TA L
Global Testing Retreat
#ATAGTR2023
7. G lobal T esting Retreat
#ATAGTR2023
G lobal T esting Retreat
#ATAGTR2023
C L I E N T C R E D E N T I A L W O R K F L O W
Global Testing Retreat
#ATAGTR2023
1. Permissions are granted
directly to the application
itself by an administrator.
2. The app presents a token to a
resource, the resource
enforces that the app itself
has authorization to perform
an action since there is no
user involved in the
authentication
https://learn.microsoft.com/en-
us/entra/identity-platform/v2-
oauth2-client-creds-grant-flow
8. G lobal T esting Retreat
#ATAGTR2023
G lobal T esting Retreat
#ATAGTR2023
G R A P H A P I . C O D E S A M P L E …
Global Testing Retreat
#ATAGTR2023
POST /{tenant}/oauth2/v2.0/token HTTP/1.1
Host: login.microsoftonline.com:443
Content-Type: application/x-www-form-urlencoded
client_id=535fb089-9ff3-47b6-9bfb-4f1264799865
&scope=https%3A%2F%2Fgraph.microsoft.com%2F.default
&client_secret=sampleCredentia1s
&grant_type=client_credentials
9. G lobal T esting Retreat
#ATAGTR2023
G lobal T esting Retreat
#ATAGTR2023
Reusability
One Mailbox Reused By
Everyone
Ease Of Use
Integration With Single Line Of
Code
Quick Results
Returning Results As Soon As
Email Is Received
One For All
One Mailbox For Multiple Test
Accounts
What does
it offer?
Global Testing Retreat
#ATAGTR2023
10. G lobal T esting Retreat
#ATAGTR2023
G lobal T esting Retreat
#ATAGTR2023
THANK
YOU
Global Testing Retreat
#ATAGTR2023
11. G lobal T esting Retreat
#ATAGTR2023
G lobal T esting Retreat
#ATAGTR2023
A P P E N D I X – S M S F O R WA R D E R
Global Testing Retreat
#ATAGTR2023