Receive security events from your OpenID provider
This functionality is available for beta testing in Creatio 10.2. To use it, contact Creatio support. You can also contact us if you have any feedback, we appreciate it: beta@creatio.com.
Let your identity provider notify Creatio as soon as something changes for a user: the user logs out, the account is disabled or enabled, or the password changes. Creatio acts on the event at once. It ends the sessions of the user on this website or deactivates the user, so users lose access to Creatio as soon as you remove it in the identity provider. Security events are based on the OpenID Shared Signals Framework.
You set up security events for each OpenID provider separately, in the Step 3. Security events (Shared Signals) group of the provider page. For the Creatio ID provider, see Sign in with Creatio ID.
Prerequisites:
- The identity provider supports Shared Signals with push delivery and lets the client manage its own event stream.
- The Creatio website is reachable from the internet at the address users open. The identity provider sends events to this address.
- Permission to the "SSO setup" (
CanManageSsocode) system operation. Out of the box, system administrators have this permission.
If the provider page has no Step 3. Security events (Shared Signals) group, security events are not available on your website. Contact Creatio support.
Enable security events
-
Click the
button to open the System Designer. -
Click Single Sign On configuration.
-
Open the OpenID provider in the External identity providers list or add a new one. Learn more: Single Sign-On via a custom OpenID provider.
-
Select the Receive security events from this provider checkbox in the Step 3. Security events (Shared Signals) group.
-
Check the SSF configuration URL field. Creatio populates it based on the provider URL. Change the value only if the documentation of your identity provider specifies a different address.
-
Check the provider (optional). To do this, click Check provider. Creatio checks that the provider supports security events and accepts the client ID and client secret from the Step 2 group. Creatio does not save anything at this step.
-
Save the changes. Creatio saves the provider, subscribes the website to the provider events, and opens the Single Sign-On Settings page. If you skipped the previous step, Creatio runs the same check on save.
As a result, a notification at the bottom of the page shows whether security events are enabled. When you open the provider, the Stream state field in the Step 3 group shows "Active." If the check fails, Creatio still saves the provider and users can log in, but security events stay disabled. The Step 3 group shows the reason.
Check that security events work
-
Open the provider in the External identity providers list.
-
Send a test event. To do this, click Send test event in the Step 3 group.
Within about 15 seconds, Test event received appears next to the button. You can send one test event per minute.
-
View the events the website receives (optional). To do this, open Events this site receives. The list shows which events the provider sends and what Creatio does for each of them. Events that the provider does not send are listed above the table.
Event | What Creatio does |
|---|---|
Session revoked | Ends the session of the user in the browser, or all sessions of the user if the provider ended all of them. |
Account disabled | Ends all sessions of the user and deactivates the user on this website. |
Account enabled | Activates the user on this website again if this provider deactivated the user. |
Credential change | Ends all sessions of the user after a password change. |
Stream states
The Stream state field shows the state of the event stream between the identity provider and Creatio.
State | Meaning | What to do |
|---|---|---|
Off | Security events are disabled. | Enable security events if needed. |
Will apply on save, Will turn off on save | The setting is changed but not saved. | Save the provider. |
Active | Events arrive. | No action needed. |
Not supported | The provider does not offer security events at this address. | Check the SSF configuration URL in the provider documentation or keep security events disabled. |
Not authorized | The provider did not accept the client. | Fix the client ID or client secret, or grant the stream scope to the client in the provider. |
Confirm | The SSF configuration URL is on a different host than the provider. | Select I confirm this address belongs to the provider and save the provider. Do this only if the provider documentation specifies this address. |
Not on yet | Creatio saved the provider, but the subscription failed. | Fix the client in the provider and click Retry. |
Unreachable | Creatio could not reach the provider. | Click Retry later. |
Paused | The provider operator paused the stream. | Contact Creatio support. |
Another address | The stream delivers events to a different website address, for example, after the website was copied. | Contact Creatio support to move the stream. |
Change or disable security events
- Change the SSF configuration URL or client ID. Creatio warns you before you save the provider. On save, Creatio removes the stream at the previous address and creates a new one. Events sent in between are lost.
- Disable security events. Open the provider, clear the Receive security events from this provider checkbox, and save the provider. Creatio shows what stops working and disables the stream in the provider. Sessions of users stay active until they expire or users log out. The Step 3 group then shows who disabled the events and when.
- Delete the provider. Creatio also removes the subscription in the provider. If the provider is unreachable, Creatio still deletes it, and the Single Sign-On Settings page shows that a subscription might remain in the provider. Ask Creatio support to remove it, then close the message.
Specifications behind security events
Security events in Creatio are modeled on the following specifications. The implementation covers only the events and delivery method described in this article.
- OpenID Shared Signals Framework 1.0. How a provider and a website set up an event stream.
- OpenID Continuous Access Evaluation Profile (CAEP) 1.0. The "Session revoked" and "Credential change" events.
- OpenID RISC Profile Specification 1.0. The "Account disabled" and "Account enabled" events.
- RFC 8935, Push-Based Security Event Token Delivery. How the provider delivers events to the website.
Troubleshoot security events
- No test event in 60 seconds. The provider accepted the request, but no event reached the website. Check that the website address in the message is the address users open and that it is reachable from the internet.
- "Try again in a minute." You can send one test event per minute.
- Could not load the state of security events. Click Retry. If the message appears again, contact Creatio support.