Skip to content

Commit

Permalink
[fix][broker] Correct MockAlwaysExpiredAuthenticationState test impl
Browse files Browse the repository at this point in the history
In c0f38a0, we cherry picked a commit that relied on
a feature not yet implemented in this branch. This commit fixes what that commit
broke.
  • Loading branch information
michaeljmarshall committed Feb 17, 2023
1 parent f9727ca commit 547dee2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public String getAuthRole() throws AuthenticationException {

@Override
public AuthData authenticate(AuthData authData) throws AuthenticationException {
authenticationDataSource = new AuthenticationDataCommand(new String(authData.getBytes(), UTF_8));
authRole = provider.authenticate(authenticationDataSource);
return null;
}

Expand All @@ -76,7 +78,7 @@ public AuthenticationDataSource getAuthDataSource() {

@Override
public boolean isComplete() {
return true;
return authRole != null;
}

@Override
Expand Down

0 comments on commit 547dee2

Please sign in to comment.