private GeoLocationRequest determineGeoLocationFor(final ClientInfo clientInfo) {
        val geoLocationRequest = HttpRequestUtils.getHttpServletRequestGeoLocation(clientInfo.getGeoLocation());
        if (!geoLocationRequest.isValid() && geoLocationService != null) {
            val geoResponse = geoLocationService.locate(clientInfo.getClientIpAddress());
            if (geoResponse != null) {
                return new GeoLocationRequest(geoResponse.getLatitude(), geoResponse.getLongitude());
            }
        }
        return geoLocationRequest;
    }
This is {@link CasAuthenticationAuthenticationEventListener} that attempts to consume CAS events
upon various authentication events. Event data is persisted into a repository
via {@link CasEventRepository}.

@author Misagh Moayyed
@since 5.0.0
core/cas-server-core-events-api/src/main/java/org/apereo/cas/support/events/listener/CasAuthenticationAuthenticationEventListener.java