xiaohongshu
xiaohongshu
guidewire-install-auth
Install and configure Guidewire InsuranceSuite development environment and Cloud API authentication. Use when setting up a new Guidewire integration, configuring OAuth2 credentials, registering with Guidewire Hub, or initializing Guidewire Studio. Trigger with phrases like "install guidewire", "s...
Full skill instructions
Set up Guidewire InsuranceSuite development environment and configure Cloud API authentication with Guidewire Hub using OAuth2 and JWT tokens.
# Verify Java installation
java -version
# Required: openjdk 17.x or 11.x
# Install Gradle if needed
sdk install gradle 8.5
# Clone your InsuranceSuite configuration repository
git clone https://[email protected]/your-org/PolicyCenter/_git/PolicyCenter
cd PolicyCenter
# Set environment variables
export GW_HOME=/path/to/guidewire/installation
export JAVA_HOME=/path/to/jdk17
# Import project into IntelliJ IDEA (recommended IDE)
# File > Open > Select the build.gradle file
https://gcc.guidewire.comclient_id and client_secret# Create environment configuration
cat > .env << 'EOF'
# Guidewire Cloud API Configuration
GW_TENANT_ID=your-tenant-id
GW_CLIENT_ID=your-client-id
GW_CLIENT_SECRET=your-client-secret
GW_HUB_URL=https://hub.guidewire.com
GW_API_BASE_URL=https://your-tenant.cloud.guidewire.com
# Application endpoints
POLICYCENTER_URL=${GW_API_BASE_URL}/pc/rest
CLAIMCENTER_URL=${GW_API_BASE_URL}/cc/rest
BILLINGCENTER_URL=${GW_API_BASE_URL}/bc/rest
EOF
// TypeScript/Node.js - OAuth2 Client Credentials Flow
import axios from 'axios';
interface TokenResponse {
access_token: string;
token_type: string;
expires_in: number;
}
async function getAccessToken(): Promise<string> {
const tokenUrl = `${process.env.GW_HUB_URL}/oauth/token`;
const response = await axios.post<TokenResponse>(tokenUrl,
new URLSearchParams({
grant_type: 'client_credentials',
client_id: process.env.GW_CLIENT_ID!,
client_secret: process.env.GW_CLIENT_SECRET!,
scope: 'pc.policies cc.claims bc.billing'
}),
{
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
}
);
return response.data.access_token;
}
// Test API connection
async function verifyConnection(): Promise<void> {
const token = await getAccessToken();
const response = await axios.get(
`${process.env.POLICYCENTER_URL}/common/v1/system-info`,
{
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
}
}
);
console.log('Connected to PolicyCenter:', response.data);
}
// Gosu - Internal authentication for plugins
uses gw.api.system.server.ServerUtil
uses gw.api.web.SessionUtil
class AuthHelper {
static function getAuthenticatedUser() : User {
return SessionUtil.CurrentUser
}
static function runAsSystemUser<T>(block() : T) : T {
return ServerUtil.runAsSystemUser(\-> block())
}
}
| Error | Cause | Solution |
|---|---|---|
invalid_client | Wrong client credentials | Verify client_id and secret in GCC |
invalid_scope | Unauthorized scope requested | Check API role assignments in GCC |
401 Unauthorized | Expired or invalid token | Refresh token, check clock sync |
403 Forbidden | Missing API role permissions | Assign appropriate API roles in GCC |
PKIX path building failed | SSL certificate issue | Import Guidewire CA certificates |
Configure in Guidewire Cloud Console:
# Recommended API roles for service applications
api_roles:
- PolicyCenter:
- pc_policy_admin
- pc_submission_handler
- pc_product_read
- ClaimCenter:
- cc_claim_admin
- cc_fnol_handler
- BillingCenter:
- bc_billing_admin
- bc_payment_handler
import axios, { AxiosInstance } from 'axios';
class GuidewireClient {
private token: string | null = null;
private tokenExpiry: Date | null = null;
private httpClient: AxiosInstance;
constructor(
private clientId: string,
private clientSecret: string,
private hubUrl: string,
private apiBaseUrl: string
) {
this.httpClient = axios.create({
baseURL: apiBaseUrl,
timeout: 30000
});
}
private async ensureToken(): Promise<string> {
if (this.token && this.tokenExpiry && this.tokenExpiry > new Date()) {
return this.token;
}
const response = await axios.post(`${this.hubUrl}/oauth/token`,
new URLSearchParams({
grant_type: 'client_credentials',
client_id: this.clientId,
client_secret: this.clientSecret
})
);
this.token = response.data.access_token;
this.tokenExpiry = new Date(Date.now() + (response.data.expires_in - 60) * 1000);
return this.token;
}
async request<T>(method: string, path: string, data?: any): Promise<T> {
const token = await this.ensureToken();
const response = await this.httpClient.request<T>({
method,
url: path,
data,
headers: {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
}
});
return response.data;
}
}
// Usage
const client = new GuidewireClient(
process.env.GW_CLIENT_ID!,
process.env.GW_CLIENT_SECRET!,
process.env.GW_HUB_URL!,
process.env.POLICYCENTER_URL!
);
After successful auth, proceed to guidewire-hello-world for your first API calls.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience