OIDC · Capability

OpenID Connect API — Token

OpenID Connect API — Token. 1 operations. Lead operation: Token Endpoint. Self-contained Naftiko capability covering one Oidc business surface.

Run with Naftiko OidcToken

What You Can Do

POST
Gettoken — Token Endpoint
/v1/token

MCP Tools

token-endpoint

Token Endpoint

Capability Spec

oidc-token.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenID Connect API — Token
  description: 'OpenID Connect API — Token. 1 operations. Lead operation: Token Endpoint. Self-contained Naftiko capability
    covering one Oidc business surface.'
  tags:
  - Oidc
  - Token
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OIDC_API_KEY: OIDC_API_KEY
capability:
  consumes:
  - type: http
    namespace: oidc-token
    baseUri: https://{issuer}
    description: OpenID Connect API — Token business capability. Self-contained, no shared references.
    resources:
    - name: token
      path: /token
      operations:
      - name: gettoken
        method: POST
        description: Token Endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.OIDC_API_KEY}}'
  exposes:
  - type: rest
    namespace: oidc-token-rest
    port: 8080
    description: REST adapter for OpenID Connect API — Token. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/token
      name: token
      description: REST surface for token.
      operations:
      - method: POST
        name: gettoken
        description: Token Endpoint
        call: oidc-token.gettoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: oidc-token-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenID Connect API — Token. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: token-endpoint
      description: Token Endpoint
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: oidc-token.gettoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.