Skip to content

Commit

Permalink
Use TestAuthenticationApiClient
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Aug 17, 2021
1 parent 57ec39b commit 7d91c75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public async Task InitializeAsync()
Password = Password
});

_authenticationApiClient = new AuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL"));
_authenticationApiClient = new TestAuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL"));
}

public async Task DisposeAsync()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public async Task Passes_Token_Validation_RS256()
var clientSecret = GetVariable("AUTH0_CLIENT_SECRET");

// Arrange
using (var authenticationApiClient = new AuthenticationApiClient(authUrl))
using (var authenticationApiClient = new TestAuthenticationApiClient(authUrl))
{
// Act
var authenticationResponse = await authenticationApiClient.GetTokenAsync(new ResourceOwnerTokenRequest
Expand All @@ -98,7 +98,7 @@ public async Task Passes_Token_Validation_HS256()
var clientSecret = GetVariable("AUTH0_HS256_CLIENT_SECRET");

// Arrange
using (var authenticationApiClient = new AuthenticationApiClient(authUrl))
using (var authenticationApiClient = new TestAuthenticationApiClient(authUrl))
{
// Act
var authenticationResponse = await authenticationApiClient.GetTokenAsync(new ResourceOwnerTokenRequest
Expand All @@ -122,7 +122,7 @@ public async Task Passes_Token_Validation_HS256()
public async Task Passes_Token_Validation_With_CNAME()
{
// Arrange
using (var authenticationApiClient = new AuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")))
using (var authenticationApiClient = new TestAuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")))
{
// Act
var authenticationResponse = await authenticationApiClient.GetTokenAsync(new ResourceOwnerTokenRequest
Expand All @@ -145,7 +145,7 @@ public async Task Passes_Token_Validation_With_CNAME()
public async Task Fails_Token_Validation_With_Incorrect_Domain()
{
// Arrange
using (var authenticationApiClient = new AuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")))
using (var authenticationApiClient = new TestAuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")))
{
// Act
var authenticationResponse = await authenticationApiClient.GetTokenAsync(new ResourceOwnerTokenRequest
Expand All @@ -171,7 +171,7 @@ public async Task Fails_Token_Validation_With_Incorrect_Domain()
public async Task Fails_Token_Validation_With_Incorrect_Audience()
{
// Arrange
using (var authenticationApiClient = new AuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")))
using (var authenticationApiClient = new TestAuthenticationApiClient(GetVariable("AUTH0_AUTHENTICATION_API_URL")))
{
// Act
var authenticationResponse = await authenticationApiClient.GetTokenAsync(new ResourceOwnerTokenRequest
Expand Down

0 comments on commit 7d91c75

Please sign in to comment.