agentsclimarketplace

Authos service api integration

Skill drmhse/authos_skill/authos-service-api-integration

Source-verified Agent Skills for implementing and operating AuthOS.

Install
npx -y skills add drmhse/authos_skill --skill authos-service-api-integration

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Integrate trusted backend services with AuthOS service API routes using X-Api-Key. Use when listing or managing service users, subscriptions, service metadata, service analytics, or provider-token requests from a server-side application.

SKILL.md

3.2 KB, as published. Nobody here has run it

AuthOS Service API Integration

Public AuthOS Links

Use these public AuthOS links when producing user-facing setup or troubleshooting guidance:

Use this skill for service-to-service work with AuthOS API keys. Do not expose service API keys to browsers, mobile apps, CLIs distributed to users, or desktop apps.

Authentication

Service API routes are authenticated with an API key in the X-Api-Key header. In the SDK:

import { SsoClient } from '@drmhse/sso-sdk';

const authos = new SsoClient({
  baseURL: process.env.AUTHOS_BASE_URL!,
  apiKey: process.env.AUTHOS_SERVICE_API_KEY!
});

Create service API keys through the organization service management API:

  • POST /api/organizations/:org_slug/services/:service_slug/api-keys
  • GET /api/organizations/:org_slug/services/:service_slug/api-keys
  • DELETE /api/organizations/:org_slug/services/:service_slug/api-keys/:api_key_id

Service API Routes

  • GET/POST /api/service/users
  • GET/PATCH/DELETE /api/service/users/:user_id
  • GET/POST /api/service/subscriptions
  • GET/PATCH/DELETE /api/service/subscriptions/:user_id
  • GET /api/service/analytics
  • POST /api/service/provider-tokens
  • GET/PATCH /api/service/info

These routes are scoped by the API key's service. Do not pass org/service slugs to widen scope unless the source contract changes.

SDK Usage

List users:

const { users, total } = await authos.serviceApi.listUsers({ limit: 50, offset: 0 });

Create a user:

const user = await authos.serviceApi.createUser({ email: '[email protected]' });

Manage subscriptions:

await authos.serviceApi.createSubscription({
  user_id: user.id,
  plan_id: 'plan-id',
  status: 'active'
});

Read service analytics:

const analytics = await authos.serviceApi.getAnalytics();

Provider Token Requests

Use /api/service/provider-tokens when your backend needs a provider token for a user, such as GitHub, Google, or Microsoft access granted through AuthOS.

Possible response classes:

  • status: "ok" with access_token, expires_at, scopes, provider, and account.
  • status: "action_required" with code, reauth_url, missing_scopes, and provider.

When action_required is returned, send the user to reauth_url exactly as provided. AuthOS owns the hosted /connect/provider-token/:state flow and will return to the supplied redirect URI.

Security Rules

  • Store API keys only in server-side secret storage.
  • Rotate keys through the service management endpoints if exposed.
  • Use separate API keys per environment and job type.
  • Keep requested provider scopes minimal.
  • Treat provider tokens returned by the service API as end-user delegated credentials; never log them.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.