> ## 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.

# Guidewire InsuranceSuite — OAuth 2.0 connector profile – StackOne setup guide

> Set up a connector profile using InsuranceSuite — OAuth 2.0 for Guidewire in StackOne to allow users to link their accounts.

## Register the front end application

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>Ask for a **Cloud/Rest API** authentication registration with the **Front end application** auth flow, using a client secret.</li>
  <li>Give Guidewire the **Callback URL** from your Connector Profile 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** into your Connector Profile.</li>
  <li>Copy the **Client Secret** into your Connector Profile.</li>
</ul>

## Configure the identity provider

Guidewire Hub signs users in through your identity provider (IdP), and the user's name decides what they can reach in PolicyCenter and ClaimCenter.

**1. Configure the user name attribute**

In your IdP, configure the attribute that carries each internal user's name when the user is verified.

<ul>
  <li>PolicyCenter: `pc_username`</li>
  <li>ClaimCenter: `cc_username`</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>Copy the result into the **Guidewire Hub Issuer URL** field of your Connector Profile.</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. The scopes include your deployment scopes:

<ul>
  <li>`tenant.{tenantId}` and `project.{projectId}`: your Guidewire Cloud tenant and project</li>
  <li>`planet_class.prod`, `planet_class.preprod` or `planet_class.lower`: the planet class of the instance</li>
  <li>Copy the list into the **Scopes** field of your Connector Profile.</li>
</ul>

## Find your application URLs

The application URL is the address of the InsuranceSuite application, before the endpoint path. PolicyCenter and ClaimCenter each have their own: PolicyCenter actions need the PolicyCenter URL and ClaimCenter actions need the ClaimCenter URL.

**1. Copy the application URLs**

Open PolicyCenter or ClaimCenter in your browser and copy the address up to the first `/` after the host. Your Guidewire Cloud administrator can also give you each URL.

<ul>
  <li>Format: `https://{application host}`</li>
  <li>Example: if PolicyCenter opens at `https://pc-prod-acme.acme-planet.guidewire.net/pc/PolicyCenter.do`, your **PolicyCenter URL** is `https://pc-prod-acme.acme-planet.guidewire.net`</li>
  <li>Copy the PolicyCenter address into the **PolicyCenter URL** field of your Connector Profile.</li>
  <li>Copy the ClaimCenter address into the **ClaimCenter URL** field of your Connector Profile.</li>
</ul>

## Create the StackOne Connector Profile

**1. Create a Connector Profile**

Enable the connector and create a Connector Profile in your project. See [Setup Connector Profile](https://docs.stackone.com/gateway/quickstart.md#setup-connector-profile).

**2. Link an Account**

Once the Connector Profile is created, continue to [link an account](https://docs.stackone.com/connectors/guidewire/guides/link-account/insurancesuite-oauth-2-0.md).


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