Configure event callbacks
- Last Updated: October 24, 2025
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
login, implemented by the SampleEventHandler class. Event handler classes must
implement OpenEdge.Security.STS.IEventProvider.
|
The eventProvider object defines one or more event handlers,
where each event handler is required to provide "type"and
optionally a "hash”. Event groups encapsulate one or more
individual process events which may be intercepted and interpreted by the
Event: Provider ABL class.
"events":{"provider" : "login"—References the eventProvider to be called when the group action happens in the domain."tokenAuthenticate" : true, "tokenExchange" : true—The events that will cause theeventProviderto run the appropriate code.tokenAuthenticateandtokenExchangegroups—Enable and disable the OpenEdge Authentication Gateways publishing authenticate/exchange process events to the OpenEdge Domains' configuredEvent: Providers.
"local" : {"type" : "com.progress.sts.SampleEventHandler", "hash" : ""— This is the event run for the"local"domain when tokenAuthenticate/Exchange happens."type"— A fully-qualified ABL class name to which the process events are published."hash"— Optional field ensures that published events only go to a specific ABL class object. The value is obtained fromRCODE-INFOand converted to a text value.
The following is a sample event handler class that prints messages to the log file.
SampleEventHandler.cls
|
Data integrity signature-value for events and policies
The data integrity signature-value in the code examples is a
security feature to make sure the correct code is being run. If the data integrity
signature-value doesn’t match, it may mean the code was
replaced, and the code will not run. This protects from someone changing the policy
code, and possibly changing the client-principal, or dumping private information in
the log file during an event.
Follow these steps to use the "hash"value protection:
- Compile the code, for example:
COMPILE SimpleEventHandler.cls SAVE. - Get the data integrity
signature-valuefrom the compiled code, for example:RCODE-INFO:FILE-NAME = "SimpleEventHandler.r". DISPLAY RCODE-INFO:SIGNATURE-VALUE FORMAT "x(60)". - Deploy the r-code only to the Authentication Server’s PROPATH.
- Add the data integrity value to the domains.json file, for example:
"eventProviders" : { "local" : { "type" : "com.progress.sts.SampleEventHandler", "hash" : "xZ89gQ4apaZ79dR8s+qK5YjbB8f1X0t/4+gSfZ41/1U=" } },