public void GivenIHaveSTSTokenWithClientClientSecretAndScope(string clientId, string clientSecret, string scope) { var Client_ID = ConfigurationManager.AppSettings[clientId]; var Client_Secret = ConfigurationManager.AppSettings[clientSecret]; var Scope = ConfigurationManager.AppSettings[scope]; var accessToken = TokenApiService.StsAccessToken(Client_ID, Client_Secret, Scope); //Assert.IsNotNull(accessToken, $"Access token should not be null given client {clientId} and scope {scope}"); AddToContext("accessToken", accessToken); }
public void GivenIHaveTheTamperedSTSToken() { var tamperedToken = TokenApiService.TamperedToken(); AddToContext("accessToken", tamperedToken); }
public void GivenIHaveSTSAccessToken() { ScenarioContext.Current.Add("accessToken", TokenApiService.StsAccessToken()); }