> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Guidewire with InsuranceNow — OAuth 2.0 (Multiple Companies) – StackOne Hub

> Link a Guidewire account in the StackOne Hub using InsuranceNow — OAuth 2.0 (Multiple Companies). End-user guide to authorize the integration and start using Guidewire actions.

## Register the application with Guidewire Hub

Every caller application must be registered with Guidewire Hub. Guidewire completes the registration and sends the client ID and client secret.

**1. Request the registration**

Sign in to the [Guidewire Community](https://community.guidewire.com) and create a **Support Task** case using the **GWHUB-0110 – Create, Update or Delete Guidewire Hub Application** template.

<ul>
  <li>Specify that you need an **InsuranceNow REST API** registration with Guidewire Hub using the **Authorization code flow**.</li>
  <li>Ask your StackOne administrator for the callback URL, and give it to Guidewire as the redirect URL.</li>
  <li>Ask Guidewire to allow refresh tokens (`offline_access`) and to send the issuer URL and the scopes registered for the application.</li>
  <li>Provide the information Guidewire asks for in the case.</li>
</ul>

**2. Copy the credentials**

Guidewire sends the client ID and client secret once the registration is complete.

<ul>
  <li>Copy the **Client ID** and paste it into the **Client ID** field when you connect your account.</li>
  <li>Copy the **Client Secret** and paste it into the **Client Secret** field when you connect your account.</li>
</ul>

## Find the Guidewire Hub issuer URL

The issuer URL is the Guidewire Hub token URL for your region without the trailing `/v1/token`. Guidewire sends the token URL with the registration, and the [Guidewire Hub token URLs by region](https://docs.guidewire.com/cloud/console/cloudconsoleapi/get-started) page lists it for each region.

**1. Build the issuer URL**

Remove `/v1/token` from the end of the token URL. The token URL's host is:

<ul>
  <li>**AMER**, **BRAZIL** and **CANADA**: `guidewire-hub.okta.com`</li>
  <li>**EMEA** and **SWITZERLAND**: `guidewire-hub-eu.okta.com`</li>
  <li>**APAC** and **JAPAN**: `guidewire-hub-apac.okta.com`</li>
  <li>Format: `https://{hub host}/oauth2/{authorization server ID}`</li>
  <li>Example: if your token URL is `https://guidewire-hub.okta.com/oauth2/{authorization server ID}/v1/token`, the issuer URL is `https://guidewire-hub.okta.com/oauth2/{authorization server ID}`</li>
  <li>Paste the result into the **Authorization Server URL** field when you connect your account.</li>
</ul>

## Collect the scopes

Guidewire Hub only issues tokens for the scopes registered for the application.

**1. Copy the scopes**

Join the scopes Guidewire lists with the registration with spaces, and add `openid` and `offline_access`. `offline_access` lets Guidewire Hub issue a refresh token, so the connection stays signed in.

<ul>
  <li>Paste the list into the **Scopes** field when you connect your account.</li>
</ul>

## Find your InsuranceNow URL

Your InsuranceNow URL is the address of your InsuranceNow server, before `/coreapi`.

**1. Copy the InsuranceNow URL**

Open InsuranceNow in your browser and copy the address up to the first `/` after the host. Include the port only if your server runs on a non-standard one.

<ul>
  <li>Format: `https://{host}`</li>
  <li>Example: if InsuranceNow opens at `https://acme.insurancenow.guidewire.net/innovation`, your **InsuranceNow URL** is `https://acme.insurancenow.guidewire.net`</li>
  <li>Paste it into the **InsuranceNow URL** field when you connect your account.</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.