End-to-end testing Single Sign On (SSO) with Microsoft Azure Active Directory

Schedule a Demo

Single Sign-on (SSO) allows a user to authenticate in one place (the identity provider) across multiple third-party applications. SSO is an essential element of managing multiple applications in a secure way, and is often a hard requirement in large enterprise software contracts.

SSO with Microsoft Azure Active Directory can be a pain to test end-to-end for a variety of reasons:

  • Testing SSO end-to-end with Microsoft Azure Active Directory introduces a dependency on the Microsoft Azure Active Directory's authentication experience. If the service updates the authentication UI, you may need to update your tests.
  • Testing Microsoft Azure Active Directory SSO involves managing multiple users and multiple sets of credentials (one for the Microsoft Azure Active Directory admin and one for the test user), which can be a pain to maintain.
  • The entire SSO flow encompasses many different experiences, and is hard to test. You need to verify that granting access to a third-party app enables the user to login, but also that removing access to the third-party app blocks the user from logging in.

What's the easiest way to test SSO with Microsoft Azure Active Directory?

walrus.ai enables engineers to test SSO using Microsoft Azure Active Directory without any of the pain:

  • When Microsoft Azure Active Directory's UI changes, walrus.ai handles any updates needed on their end, so you never need to refactor your tests based on any third-party dependency outside of your control.
  • Writing the full end-to-end test takes minutes, because it's just written in plain English.
  • walrus.ai can handle any test setup or teardown within the test itself, simply add those steps to the test instructions.

A one-size-fits-most end-to-end test for SSO with Microsoft Azure Active Directory using walrus.ai:

1---
2name: 'Microsoft Azure Active Directory SSO'
3url: 'https://your-site.com'
4variables:
5 third_party_login_url: 'https://your-site.com'
6 Microsoft Azure Active Directory_url: 'https://your-site.Microsoft Azure Active Directory.com/app/UserHome'
7 Microsoft Azure Active Directory_admin_email: 'Microsoft Azure Active Directory_admin_emal@your-site.com'
8 Microsoft Azure Active Directory_admin_password: 'Microsoft Azure Active Directory_admin_email@your-site.com'
9 test_user_email: 'user_email@your-site.com'
10 test_user_password: 'Microsoft Azure Active Directory_password'
11instructions:
12 - 'Login to :Microsoft Azure Active Directory_url: with :Microsoft Azure Active Directory_admin_email: and :Microsoft Azure Active Directory_admin_password:'
13 - 'In Microsoft Azure Active Directory, create a new user with the email :test_user_email:'
14 - 'In Microsoft Azure Active Directory, assign :test_user_email: to your-site'
15 - 'Log out of :Microsoft Azure Active Directory_url:'
16 - 'Login to :third_party_login_url: with :test_user_email:'
17 - 'Vefify login to :third_party_login_url: with :test_user_email: is successful'
18 - 'Logout of :third_party_login_url: with :test_user_email:'
19 - 'Login to :Microsoft Azure Active Directory_url: with :Microsoft Azure Active Directory_admin_email: and :Microsoft Azure Active Directory_admin_password:'
20 - 'In Microsoft Azure Active Directory, remove :test_user_email: from the your-site'
21 - 'Log out of :Microsoft Azure Active Directory_url:'
22 - 'Attempt to login to :third_party_login_url: with :test_user_email:'
23 - 'Verify logging in with :test_user_email: fails'

Ready to start testing SSO with Microsoft Azure Active Directory?