AnsweredAssumed Answered

Selenium authentication with apps using Azure Active Directory B2C

Question asked by James Hamill on May 25, 2017
Latest reply on Jun 9, 2017 by James Hamill

Hi, we have a number of apps based on Azure Web services which make use of the Azure Active Directory B2C implementation of OAuth 2.0. 

 

We have always utilised Selenium scripts in order to automate authentication. However it would appear that using OAuth for authentication makes this difficult. Upon visiting our test URL we are redirected to a login.microsoft.com URL. The problem is that the full URL is unique. When running through the Selenium playbook it loads the URL which was generated during the recording. This URL is no longer valid and therefore we receive a Bad request error. 

 

Has anyone else had to automate authentication against a similar set up? I'd be interested to hear how you managed to get round this. 

 

Thanks in advance.

Outcomes