Published just before the secure object attempts to proceed.
332333334335336337338339340341342
if (logger.isDebugEnabled()) { logger.debug("Authorization successful"); } AuthorizedEvent event = new AuthorizedEvent(object, attr, authenticated); publishEvent(event); // Attempt to run as a different user Authentication runAs = this.runAsManager.buildRunAs(authenticated, object, attr);
356357358359360361362363364365366
if (logger.isDebugEnabled()) { logger.debug("authorization successful"); } AuthorizedEvent event = new AuthorizedEvent(object, attr, authenticated); this.eventPublisher.publishEvent(event); // Attempt to run as a different user Authentication runAs = this.runAsManager.buildRunAs(authenticated,