Skip to content

Commit

Permalink
issue#72 make DevOnlyAuthProvider's behavior more straightforward (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyuan17 authored Apr 3, 2024
1 parent 211fa01 commit 0ac634a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ public CompletableFuture<MQTT3AuthResult> auth(MQTT3AuthData authData) {
return CompletableFuture.completedFuture(MQTT3AuthResult.newBuilder()
.setOk(Ok.newBuilder()
.setTenantId("DevOnly")
.setUserId("DevUser_" + System.nanoTime()).build())
.setUserId(authData.getUsername()).build())
.build());
}
} else {
return CompletableFuture.completedFuture(MQTT3AuthResult.newBuilder()
.setOk(Ok.newBuilder()
.setTenantId("DevOnly")
.setUserId("DevUser_" + System.nanoTime()).build())
.setUserId("DevUser").build())
.build());
}
}
Expand Down

0 comments on commit 0ac634a

Please sign in to comment.