1.4k
GitHub Stars
1
Bundled Files
6 months ago
Catalog Refreshed
8 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill openclaw/skills --skill telnyx-oauth-java- SKILL.md6.6 KB
Overview
This skill implements OAuth 2.0 authentication flows and management for accessing the Telnyx API using Java examples. It provides code snippets for authorization, token exchange, client management, introspection, and key retrieval. Examples assume a TelnyxClient initialized from environment configuration.
How this skill works
The skill demonstrates how to call Telnyx OAuth endpoints via the Java SDK: authorization endpoints, token issuance, introspection, JWKS retrieval, and dynamic client registration. It also shows CRUD operations for OAuth clients and grants, and how to inspect consent tokens and protected resource metadata. Each example uses typed parameter builders and responses from the SDK to simplify integration in Java applications.
When to use it
- Integrating Telnyx API access into server or client Java applications requiring OAuth 2.0.
- Automating OAuth client creation and lifecycle management for multi-tenant systems.
- Exchanging authorization codes, client credentials, or refresh tokens for access tokens.
- Verifying tokens via introspection or by fetching the JWKS for signature validation.
- Revoking grants or inspecting consent tokens during user deprovisioning.
Best practices
- Initialize TelnyxClient once from secure environment variables and reuse it across requests.
- Use the authorization code flow for user delegation and client credentials for machine-to-machine access.
- Validate tokens locally using JWKS where possible, and fall back to introspection for opaque tokens.
- Restrict allowed_scopes and allowed_grant_types when creating OAuth clients to follow least privilege.
- Rotate client credentials and revoke grants when a device or integration is retired.
Example use cases
- Build a web app that directs users to /oauth/authorize and exchanges the code at /oauth/token to obtain access tokens.
- Provision per-customer OAuth clients programmatically using dynamic client registration and store client IDs securely.
- Implement an admin console to list, update, and delete OAuth clients and to view active grants.
- Run a background job to introspect tokens and revoke expired or compromised grants.
- Use the JWKS endpoint to validate JWT access tokens locally before allowing API operations.
FAQ
No. Examples use the Telnyx Java SDK and its OkHttp client. You can initialize TelnyxClient.fromEnv() or substitute another supported client implementation.
Which grant types are supported?
The SDK examples demonstrate authorization code, client credentials, and refresh token flows. Allowed grant types are configurable when creating a client.
How do I validate tokens locally?
Fetch the JSON Web Key Set from /oauth/jwks and use a JWT library to verify signatures, claims, and expiry. Use introspection for opaque tokens.