diff --git a/src/main/java/net/hostsharing/hsadminng/config/CasAuthenticator.java b/src/main/java/net/hostsharing/hsadminng/config/CasAuthenticator.java index 9fe55f5e..e0d8a9f1 100644 --- a/src/main/java/net/hostsharing/hsadminng/config/CasAuthenticator.java +++ b/src/main/java/net/hostsharing/hsadminng/config/CasAuthenticator.java @@ -1,5 +1,6 @@ package net.hostsharing.hsadminng.config; +import io.micrometer.core.annotation.Timed; import lombok.SneakyThrows; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Value; @@ -25,6 +26,7 @@ public class CasAuthenticator implements Authenticator { private final RestTemplate restTemplate = new RestTemplate(); @SneakyThrows + @Timed("app.cas.authenticate") public String authenticate(final HttpServletRequest httpRequest) { final var userName = StringUtils.isBlank(casServerUrl) ? bypassCurrentSubject(httpRequest)