This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<policies> | |
<inbound> | |
<base /> | |
<set-backend-service base-url="https://yourapihere.com" /> | |
</inbound> | |
<backend> | |
<base /> | |
</backend> | |
<outbound> | |
<choose> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static IWebDriver AzureAdRedirectWithAuthDetails(this IWebDriver driver, string userName, string password, string domainToReplace) | |
{ | |
Thread.Sleep(TimeSpan.FromSeconds(5)); | |
var newUrlWithUserCredentials = driver.Url.Replace(domainToReplace, $"{WebUtility.HtmlEncode(userName)}:{password}@{domainToReplace}"); | |
driver.Navigate().GoToUrl(newUrlWithUserCredentials); | |
return driver; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Cocona; | |
using Microsoft.Playwright; | |
using PlaywightAzureAdBasicAuth; | |
var builder = CoconaApp.CreateBuilder(); | |
var app = builder.Build(); | |
app.AddCommand(async ([Argument(Description = "Username to login with")] string userName, | |
[Argument(Description = "Password to login with")] string password, | |
[Argument(Description = "The url of your application as a starting point where your login button is located")] string applicationUrl, |
OlderNewer