We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0105200 commit d12b4a9Copy full SHA for d12b4a9
services-api/src/main/java/io/scalecube/services/methods/ServiceMethodInvoker.java
@@ -247,8 +247,7 @@ private Mono<Principal> mapPrincipal(RequestContext context) {
247
}
248
249
250
- return principalMapper
251
- .map(context)
+ return Mono.defer(() -> principalMapper.map(context))
252
.switchIfEmpty(Mono.just(context.principal()))
253
.onErrorMap(ServiceMethodInvoker::toForbiddenException);
254
0 commit comments