SSO
GigaSpaces supports Single Sign-On (SSO
Single sign-on (SSO) is an authentication scheme that allows a user to log in with a single ID to any of several related, yet independent, software systems.) integration using the OpenID Connect (OIDC
OpenID Connect (OIDC) is an open authentication protocol that works on top of the OAuth 2.0 framework. Targeted toward consumers, OIDC allows individuals to use single sign-on (SSO) to access relying party sites using OpenID Providers (OPs), such as an email provider to authenticate their identities.) standard. This enables centralized user authentication and access control through standard Identity Providers (IdPs) such as Okta, Keycloak, or Azure AD.
Enabling SSO Security
To activate SSO across the Service Grid
A built-in orchestration tool which contains a set of Grid Service Containers (GSCs) managed by a Grid Service Manager. The containers host various deployments of Processing Units and data grids. Each container can be run on a separate physical machine. This orchestration is available for XAP only., update the environment overrides script to enable security and point to your OpenID configuration file.
Edit gs-home/bin/setenv-overrides.sh and add the following export directive:
export GS_OPTIONS_EXT="-Dcom.gs.security.enabled=true -Dcom.gs.security.properties-file=$HOME/config/security/openid-security.properties -Dcom.gs.manager.rest
REpresentational State Transfer. Application Programming Interface
An API, or application programming interface, is a set of rules that define how applications or devices can connect to and communicate with each other. A REST API is an API that conforms to the design principles of the REST, or representational state transfer architectural style..ssl.enabled=false"
When the Service Grid starts with these settings, a dedicated Security Service is automatically launched on the Manager host on default port 9000.
Configuring OpenID Provider Properties
Define your SSO settings in your security properties file (for example, $HOME/config/security/openid-security.properties).
Property File Example
# OpenID Provider Identification
com.gs.openid.id=1
com.gs.openid.providerType=OKTA
# Identity Provider Credentials & Issuer URL
com.gs.openid.clientId=<client_id_from_idp>
com.gs.openid.clientSecret=<client_secret_from_idp>
com.gs.openid.issueURL=https://<your-org>.okta.com/oauth2/default
# Browser Flow & Redirect Endpoints
com.gs.openid.redirectUris=http://<host>:9000/oauth2/authorization-code/callback
com.gs.openid.spacedeckUrl=https://<host>:8888/api/auth/login
# Role & Group Claim Mapping
com.gs.openid.authorityClaim=groups
Property Reference
| Property | Type | Required | Description |
|---|---|---|---|
com.gs.openid.id
|
Integer | Yes | Unique numeric identifier for the OpenID provider configuration. |
com.gs.openid.providerType
|
String | Yes | Identity Provider type (for example, OKTA, KEYCLOAK). |
com.gs.openid.clientId
|
String | Yes | Unique Client ID issued by your IdP. |
com.gs.openid.clientSecret
|
String | Yes | Confidential Client Secret issued by your IdP. |
com.gs.openid.issueURL
|
String | Yes |
Issuer URL of the IdP token server.
|
com.gs.openid.redirectUris
|
URI | Yes | Callback URI registered with your IdP for the authorization code flow. |
com.gs.openid.spacedeckUrl
|
URI | Yes | Endpoint URL required for the browser login flow through SpaceDeck |
com.gs.openid.authorityClaim
|
String | Yes | Token claim that contains user roles or groups. Must match the payload emitted by your IdP. (Inspect token claims at jwt.io.) |
Authenticating & Accessing XAP Manager REST API
When security is enabled, accessing the XAP
GigaSpaces eXtreme Application Platform.
Provides a powerful solution for data processing, launching, and running digital services Manager REST API
REpresentational State Transfer. Application Programming Interface
An API, or application programming interface, is a set of rules that define how applications or devices can connect to and communicate with each other. A REST API is an API that conforms to the design principles of the REST, or representational state transfer architectural style. requires a bearer token issued by the Security Service.
REST API Documentation (Swagger UI)
You can view and test the available REST API endpoints for the Security Service at:
http://<xap-manager-host>:9000/swagger-ui/index.html
Obtaining an Access Token
Request an authorization token by navigating to: http://<xap-manager-ip>:9000/oauth2/authorize
Authentication Flow:
-
If you are already logged in, the Security Service retrieves the token directly.
-
If you are not authenticated, you will be redirected to your Identity Provider's login page.
Using the Token: Include the token in the Authorization header of your XAP Manager REST API requests: Authorization: Bearer <access_token>
You can decode and debug tokens by pasting them into jwt.io.
Service Accounts for Long-Running Tasks
For non-interactive or background processes, such as data pipelines, external Processing Units
This is the unit of packaging and deployment in the GigaSpaces Data Grid, and is essentially the main GigaSpaces service. The Processing Unit (PU) itself is typically deployed onto the Service Grid. When a Processing Unit is deployed, a Processing Unit instance is the actual runtime entity. (PUs), or persistent Space
Where GigaSpaces data is stored. It is the logical cache that holds data objects in memory and might also hold them in layered in tiering. Data is hosted from multiple SoRs, consolidated as a unified data model. clients, use dedicated Service Accounts rather than user credentials.
For details on configuring permissions and service accounts, refer to the Service Account Privilege Management.
Local Development & Testing with Keycloak
For local testing and validation of OpenID Connect flows, deploy a standalone Keycloak instance using Docker.
Step 1: Start Keycloak Container
Run the following command to start Keycloak in development mode:
docker run -p 8080:8080 \
-e KEYCLOAK_ADMIN=admin \
-e KEYCLOAK_ADMIN_PASSWORD=admin \
quay.io/keycloak/keycloak:21.0.1 start-dev
Step 2: Configure Keycloak Admin Console
-
Access the console at
http://localhost:8080(log in withadmin/admin). -
Create Realm: Set up a new realm (for example,
demo-realm). -
Create Client:
-
Create a new confidential client.
-
Set Client Authentication to ON.
-
Enable Direct Access Grants to allow token retrieval via cURL.
-
-
Roles & Users: Create roles and users, then assign the roles to users.
-
Configure Mappers: Ensure user roles are mapped to the claim specified in
com.gs.openid.authorityClaim.
Step 3: Retrieve Token via cURL (Direct Grant)
To retrieve a token programmatically without a browser:
curl -X POST http://localhost:8080/realms/<realm-name>/protocol/openid-connect/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=password" \
-d "client_id=<clientId>" \
-d "client_secret=<clientSecret>" \
-d "username=<user>" \
-d "password=<password>"
Extract the access_token from the JSON response and pass it in the Authorization: Bearer <access_token> header for REST API, SpaceDeck, or XAP requests.
In-Memory Data Grid - achieve unparalleled speed, persistence, and accuracy.