--- title: "Service extensions | Strata Docs" slug: "service-extensions" tags: ["Maverics Console"] updated: 2026-01-08T18:39:53Z published: 2026-01-08T18:39:53Z canonical: "legacy-docs.strata.io/service-extensions" --- > ## Documentation Index > Fetch the complete documentation index at: https://legacy-docs.strata.io/llms.txt > Use this file to discover all available pages before exploring further. # Service extensions ## Overview Maverics can be extended using service extensions, which are custom, Golang code that support arbitrary functionality such as retrieving and constructing complex attributes or defining and evaluating policies with logic not pre-built into an Orchestrator. Service extensions give administr/ators the ability to customize the behavior of the Maverics Orchestrator to suit the particular needs of their integration. ## Service Extension Points (A-Z) | Name | Description | Global | OIDC | SAML | Proxy | | --- | --- | --- | --- | --- | --- | | API Application Type | `serveSE` - Found in Applications, this API app pattern enables you define a custom APIs. | ✅ | | | | | Authentication | `isAuthenticatedSE` - Determines if a user is already authenticated. `authenticateSE` - Controls the authentication behavior. | | ✅ | ✅ | ✅ | | Authorization | `isAuthorizedSE` - Overrides the default authorization behavior. | | ✅ | ✅ | ✅ | | Back Channel Authentication | `backchannel.authenticateSE` - used to take control of how end-user authentication will be done for backchannel OIDC flows such as Resource Owner Password Credentials Grant | | ✅ | | | | Build User Info Claims | `buildUserInfoClaimsSE`- Found in [Deployments](/v1/docs/deployment-manager) in the OIDC Provider Settings, this enables you to customize the claims returned by the userinfo endpoint. | | ✅ | | | | Custom Claims | `buildClaimsSE` - Customizes attributes added to SAML 2.0 Attribute Statement. `buildIDTokenClaimsSE` - Customizes claims in the OIDC ID token. `buildAccessTokenClaimsSE` - Customizes claims in the OIDC access token. | | ✅ | ✅ | | | Evaluate Idle Session Timeout | `evalIdleTimeoutSE` - Found in [Deployments](/v1/docs/deployment-manager) in the Session and Cookies section, this enables a **global** control on how session idle timeouts are handled. | ✅ | | | | | Evaluate Max Session Lifetime | `evalMaxLifetimeSE` - Found in [Deployments](/v1/docs/deployment-manager) in the Session and Cookies section, this enables a **global** control on how session idle timeouts are handled. | ✅ | | | | | Handle Unauthorized | `handleUnauthorizedSE` - used in a [Proxy Application Pattern](/v1/docs/proxy-apps) to override the default behavior when a policy evaluation denies access to the app. | | | | ✅ | | HTTP Header Creation | `createHeaderSE` - used in a [Proxy Application Pattern](/v1/docs/proxy-apps) to creates a custom HTTP headers, often for attribute enrichment. | | | | ✅ | | Load Attributes | `loadAttrsSE` **-** Customizes how attributes are loaded, often from enterprise APIs. | | ✅ | ✅ | ✅ | | Modify Request | `modifyRequestSE` - used in a [Proxy Application Pattern](/v1/docs/proxy-apps) Modifies every HTTP request passing through the app. | | | | ✅ | | Modify Response | `modifyResponseSE `- used in a [Proxy Application Pattern](/v1/docs/proxy-apps) to modifies every HTTP response passing through the app. | | | | ✅ | | Post Single Logout | `postLogoutSE` - found in [Deployments](/v1/docs/deployment-manager) in the Single Logout section, this **globally** controls the behavior after a logout has occurred. This Service Extension is executed before the redirect to the Logout Redirect occurs. | ✅ | | | | | Relay State | `buildRelayStateSE` - Builds the RelayState parameter in an IDP-initiated login flow. | | | ✅ | | | Upstream Application Login | `isLoggedIn` - determine if the proxied upstream application has been logged into. `login` **-** used to log in to a proxied upstream application | | | | ✅ | ## **Service Extension Workflow** ### Creating a New Service Extension ![](https://cdn.document360.io/7b34828b-3c04-415a-b0b8-8c03e8792c34/Images/Documentation/image(136).png?sv=2026-02-06&spr=https&st=2026-11-26T15%3A46%3A40Z&se=2026-11-26T16%3A46%3A40Z&sr=b&sp=r&sig=M1tqN%2FpeJE8KFiH5v%2FJxO5lmWG%2BmQy4TC1NvJUH%2BXa4%3D) Click to enlarge 1. From the main navigation select **Service Extensions.** 2. To start with a **scaffolded function signature,** select the appropriate **Extension Point**, see [Service Extension Points (A-Z)](/v1/docs/service-extensions-2#service-extension-points-az) above. 3. Provide a **Name** and **Description** for the extension. 4. The **Function Name** is a unique identifier for the service extension function name. Function names in Go must not contain spaces, and the first letter should be capitalized so that it can be exported (see [idioms](https://developer.strata.io/orchestrator/service-extensions/#idioms)). 5. Click **Create.** ### Service Extension Editor ![](https://cdn.document360.io/7b34828b-3c04-415a-b0b8-8c03e8792c34/Images/Documentation/image(137).png?sv=2026-02-06&spr=https&st=2026-11-26T15%3A46%3A40Z&se=2026-11-26T16%3A46%3A40Z&sr=b&sp=r&sig=si7PR4F%2Ba%2FnMNkSn6iXbetqBUMAnJYc0r7P%2B5MtLIP0%3D) Click to enlarge Maverics Console’s built-in **Go code editor** supports basic linting, auto-complete, and validation. If you prefer to use a local development environment refer to the instructions in the [service extension library repository](https://github.com/strata-io/service-extension). > [!NOTE] > **Go Library Documentation** > > The Orchestrator exposes a library to aid in the development of extensions and to hook into underlying functionality in the Orchestrator. For example, you may want to log in to an IDP, query an attribute provider, or pull secrets from a secret store. To understand what functionality is available and how to use it, please see the [library documentation](https://pkg.go.dev/github.com/strata-io/service-extension). - [Methods](/v1/docs/service-extension-basics-1) - The `orchestrator.go` library is a blueprint and provides methods for any orchestrator used in your service architecture. - [Additional third party packages](/v1/docs/additional-third-party-packages-1-1) - The orchestrator supports a number of third-party packages that could be imported in service extensions. #### Assets Assets in service extensions refer to files. These can be HTML templates, static images, configuration files, or other runtime resources. These will be bundled into the deployment and made accessible to the extension logic at runtime. For example, you might use assets to render a custom HTML error page or include a static JSON configuration used during processing. These assets are included into the deployment bundle, allowing seamless and secure access without relying on external file paths. **Implementation Components** The provided code snippet demonstrates three essential components when working with Service Extension Assets: 1. Upload your files (HTML, images, css files up to 2 mb in size) by clicking **Upload**. 2. Accessing the Assets API ```go seAssets := api.ServiceExtensionAssets() ``` This component: - Retrieves the Service Extension Assets interface from the orchestrator API - Provides access to all embedded files within the service extension bundle - Serves as the entry point for any file operations within the extension - Must be called before attempting to read any embedded files 3. Reading Files from the Assets Bundle ```go idpForm, err := seAssets.ReadFile("idpForm.html") if err != nil {    http.Error(        rw,        http.StatusText(http.StatusInternalServerError),        http.StatusInternalServerError,    )    logger.Error("failed to open idpForm.html", err)    return } _, _ = rw.Write([]byte(fmt.Sprintf(string(idpForm), req.FormValue("SAMLRequest")))) ``` This component: - Uses the ReadFile() method to retrieve file contents as a byte array - Implements proper error handling if the file isn't found or can't be read - Processes the file contents (in this case, inserting a dynamic value into an HTML template) - Writes the processed content to the HTTP response writer - Demonstrates a practical use case (serving an authentication form from an embedded HTML template) Together, these components enable service extensions to bundle and serve assets without external filesystem dependencies, improving portability and security. You can view a sample implementation in the [assets.go source file](https://github.com/strata-io/service-extension/blob/main/bundle/assets.go) ### Service Extension Settings ![](https://cdn.document360.io/7b34828b-3c04-415a-b0b8-8c03e8792c34/Images/Documentation/image(138).png?sv=2026-02-06&spr=https&st=2026-11-26T15%3A46%3A40Z&se=2026-11-26T16%3A46%3A40Z&sr=b&sp=r&sig=A1tjCbeAbKjMXfXTq1pqHMeEDwkfifBjRcyZ27muolA%3D) Click to enlarge #### Claims If your service extension requires claims: 1. Define the claims in the Service Extension Editor, and use them in your code as you see fit. See [developer documentation](https://developer.strata.io/orchestrator/service-extensions/#service-extension-using-metadata) for examples. 2. Select your service extension in the user flow. 3. Choose the attributes from defined list. 4. When Published, the claims configuration your service extension needs will be deployed. #### Dependencies In your service extension you can use Identity Fabric connectors to IDPs, attribute providers and Continuity Strategies. In order for the proper configuration to be deployed, add them as a dependency. 1. In the Provider section of the Service Extension editor, click **Add.** Use the providers in your code as you see fit. See [developer documentation](https://developer.strata.io/orchestrator/service-extensions/#service-extension-using-metadata) for examples. 2. Select your provider defined in the Identity Fabric. 3. Select your service extension in the user flow or from Orchestrator Settings in Deployments. 4. When Published, the provider configuration your service extension needs will be deployed. #### Metadata Metadata is an arbitrary set of key-value pairs that can be made available to a given extension. The values can be referenced from within the Go code, making service extensions more flexible and the configuration more obvious. > [!NOTE] > Metadata changes made in this section only apply to the user flow and **do not apply** to the parent service extension. 1. In the **Metadata** section from the Service Extension editor, click **Edit** to define the metadata names and default values. 2. Reference them as variables in your go code. See [developer documentation](https://developer.strata.io/orchestrator/service-extensions/#service-extension-using-metadata) for examples. 3. Select your service extension in the user flow or from Orchestrator Settings in Deployments. 4. When Published, the metadata your service extension needs will be deployed. > [!TIP] > 💡**Overriding the metadata values in a user flow** ![](https://cdn.document360.io/7b34828b-3c04-415a-b0b8-8c03e8792c34/Images/Documentation/image(139).png?sv=2026-02-06&spr=https&st=2026-11-26T15%3A46%3A40Z&se=2026-11-26T16%3A46%3A40Z&sr=b&sp=r&sig=JfqzBxLeQKWMlH33ik8nPEW6Wjn3dFDvNcdufMROXdU%3D) > > 1. In a user flow, navigate to the service extension point (such as Authentication or Attribute Providers) and select your service extension. > 2. If the service extension has editable metadata values, a pencil icon will appear. Click it to open the metadata editor. > > **Workflow Notes** > > - **Name changes propagate globally:** When you update the name in the service extension editor, the change applies everywhere that service extension is used. > - **Value overrides are independent:** Updating default values in the service extension editor does not affect any values that have already been overridden in individual user flows. Overridden values remain unchanged. > - **Key pair changes propagate globally:** Adding or deleting metadata key pairs in the service extension editor affects all instances where the service extension is used. > - **Shared metadata across references:** If you reference the same service extension multiple times within a single user flow, any metadata edits you make will apply to all of those references simultaneously. #### Enable Libraries Go packages not exposed by default that require explicit permission. For example, packages that provide on host file system access or sensitive I/O operations. 1. From the Service Extension Editor click **Edit.** 2. Under Enable libraries you can choose: - **os** - enables your service extension to interact directly with the host operating system. The os package provides functionality such as reading and writing environment variables, managing file paths, and accessing the filesystem. While powerful, this access introduces security risks, particularly in orchestrated environments where unmanaged file or system interactions could unintentionally expose sensitive data or create side effects across deployments. - **os/exec** The os/exec package goes a step further by allowing the execution of system-level commands and binaries. Granting access to this package means a service extension can spawn new processes, run shell commands, or interface with external tools on the host. This level of control is extremely potent and must be used with caution, as it can introduce significant security vulnerabilities if misused or exploited. For that reason, access to os/exec is restricted and must be explicitly enabled with full awareness of the risks.