zhouhao 3 年之前
父节点
当前提交
e7015f1a16

+ 1 - 1
hsweb-authorization/hsweb-authorization-api/src/main/java/org/hswebframework/web/authorization/AuthenticationHolder.java

@@ -56,7 +56,7 @@ public final class AuthenticationHolder {
             return Optional.empty();
         }
         if (size == 1) {
-            return suppliers.get(0).get();
+            return function.apply(suppliers.get(0));
         }
         SimpleAuthentication merge = new SimpleAuthentication();
         for (AuthenticationSupplier supplier : suppliers) {