Skip to main content
If an administrator has connected an OIDC provider to your 1Password Business account, you can use 1Password to broker access to secrets from your 1Password Environments in your custom workflows at runtime.

Step 1: Set up an Environment

To configure the variables you need to use in a custom workflow, make sure you have the latest beta release of the 1Password desktop app, then create a new 1Password Environment with your variables or add your variables to an existing Environment.

Step 2. Connect your Environment to your workflow

After you’ve set up an Environment and added your secrets, you can connect the Environment to your workflow:
  1. Open your Environment, then select Connect in the Generic OIDC section.
    If you’ve already connected your Environment to a workflow, select Connect instead, then select Connect in the Generic OIDC section.
  2. Enter a name for your workflow, then choose the integration for the OIDC provider you need to use.
  3. (Optional) Define any additional access conditions you want to enforce. You’ll also see any inherited conditions your administrator configured for the integration.
  4. Select Connect.

Step 3: Use your Environment in your workflow

After you’ve connected your Environment to a custom workflow, you’ll need to create a 1Password SDK client configured with a custom function to fetch your OIDC token. The client authenticates using your OIDC token, workload ID, and the integration key configured by your administrator, then uses a function to retrieve secrets from your Environment using the Environment ID.
Brokered access is only supported in the the 1Password JavaScript SDK at this time.

Usage example

The following example shows how you can use a 1Password JavaScript SDK client to call a function that fetches your OIDC token, then uses it alongside the other required variables to retrieve secrets from your Environment in a GitLab CI/CD job.
op-client-example.js

Get help

If you don’t see Generic OIDC as a destination in the 1Password desktop app, make sure your administrator has connected an OIDC provider to your 1Password account.

Learn more