/workhuman-pack:workhuman-install-authfrom workhuman-pack
Configures OAuth 2.0 authentication for the Workhuman Social Recognition API with TypeScript and Python client examples. Trigger: '/workhuman-install-auth'.
Ships in workhuman-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Configure Workhuman API access for Social Recognition, rewards, and HRIS integration. Workhuman uses OAuth 2.0 for API authentication. The API enables programmatic recognition nominations, reward redemption, and employee data sync.
# .env
WORKHUMAN_CLIENT_ID=your-client-id
WORKHUMAN_CLIENT_SECRET=your-client-secret
WORKHUMAN_BASE_URL=https://api.workhuman.com
WORKHUMAN_TENANT_ID=your-tenant-id
import axios from 'axios';
async function getWorkhmanToken(): Promise<string> {
const { data } = await axios.post(
`${process.env.WORKHUMAN_BASE_URL}/oauth/token`,
new URLSearchParams({
grant_type: 'client_credentials',
client_id: process.env.WORKHUMAN_CLIENT_ID!,
client_secret: process.env.WORKHUMAN_CLIENT_SECRET!,
}),
{ headers: { 'Content-Type': 'application/x-www-form-urlencoded' } },
);
return data.access_token;
}
const token = await getWorkhmanToken();
const api = axios.create({
baseURL: process.env.WORKHUMAN_BASE_URL,
headers: { Authorization: `Bearer ${token}` },
});
const { data } = await api.get('/api/v1/users/me');
console.log(`Connected as: ${data.displayName}`);
import requests, os
class WorkhumanClient:
def __init__(self):
self.base = os.environ["WORKHUMAN_BASE_URL"]
self.token = self._authenticate()
def _authenticate(self):
resp = requests.post(f"{self.base}/oauth/token", data={
"grant_type": "client_credentials",
"client_id": os.environ["WORKHUMAN_CLIENT_ID"],
"client_secret": os.environ["WORKHUMAN_CLIENT_SECRET"],
})
return resp.json()["access_token"]
def get(self, endpoint, **params):
return requests.get(f"{self.base}{endpoint}",
headers={"Authorization": f"Bearer {self.token}"}, params=params).json()
| Error | Cause | Solution |
|---|---|---|
401 Unauthorized | Invalid credentials | Check client_id/secret |
403 Forbidden | Insufficient permissions | Contact Workhuman admin |
invalid_grant | Wrong grant type | Use client_credentials |
Proceed to workhuman-hello-world for your first recognition nomination.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
workhuman, oauth2, authentication, hris, recognition, api-integration
npx claudepluginhub flight505/skill-forge --plugin workhuman-pack18 skills in this plugin
/workhuman-ci-integrationWorkhuman ci integration for employee recognition and rewards API.
Use when integrating Workhuman Social Recognition,
or building recognition workflows with HRIS systems.
Trigger: "workhuman ci integration".
/workhuman-common-errorsWorkhuman common errors for employee recognition and rewards API.
Use when integrating Workhuman Social Recognition,
or building recognition workflows with HRIS systems.
Trigger: "workhuman common errors".
/workhuman-core-workflow-aWorkhuman core workflow a for employee recognition and rewards API.
Use when integrating Workhuman Social Recognition,
or building recognition workflows with HRIS systems.
Trigger: "workhuman core workflow a".
Other plugins' skills for the same job