forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed keycloak#33043 Signed-off-by: Alexander Schwartz <[email protected]>
- Loading branch information
Showing
13 changed files
with
77 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,24 @@ | |
|
||
package org.keycloak.events; | ||
|
||
import org.keycloak.models.KeycloakSession; | ||
import org.keycloak.provider.ProviderFactory; | ||
|
||
/** | ||
* @author <a href="mailto:[email protected]">Stian Thorgersen</a> | ||
*/ | ||
public interface EventListenerProviderFactory extends ProviderFactory<EventListenerProvider> { | ||
|
||
default boolean isEnabled(KeycloakSession session) { | ||
if (isGlobal()) { | ||
return true; | ||
} else { | ||
return session.getContext().getRealm().getEventsListenersStream().anyMatch(s -> s.equals(getId())); | ||
} | ||
} | ||
|
||
default boolean isGlobal() { | ||
return false; | ||
} | ||
|
||
} |
71 changes: 0 additions & 71 deletions
71
server-spi-private/src/main/java/org/keycloak/events/GlobalEventListenerProvider.java
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
server-spi-private/src/main/java/org/keycloak/events/GlobalEventListenerProviderFactory.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.