zhouhao %!s(int64=3) %!d(string=hai) anos
pai
achega
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();
             return Optional.empty();
         }
         }
         if (size == 1) {
         if (size == 1) {
-            return suppliers.get(0).get();
+            return function.apply(suppliers.get(0));
         }
         }
         SimpleAuthentication merge = new SimpleAuthentication();
         SimpleAuthentication merge = new SimpleAuthentication();
         for (AuthenticationSupplier supplier : suppliers) {
         for (AuthenticationSupplier supplier : suppliers) {