OIDC · Capability

OpenID Connect API — Session

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

Run with Naftiko OidcSession

What You Can Do

GET
Endsession — End Session Endpoint
/v1/end-session

MCP Tools

end-session-endpoint

End Session Endpoint

read-only idempotent

Capability Spec

oidc-session.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpenID Connect API — Session
  description: 'OpenID Connect API — Session. 1 operations. Lead operation: End Session Endpoint. Self-contained Naftiko capability
    covering one Oidc business surface.'
  tags:
  - Oidc
  - Session
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OIDC_API_KEY: OIDC_API_KEY
capability:
  consumes:
  - type: http
    namespace: oidc-session
    baseUri: https://{issuer}
    description: OpenID Connect API — Session business capability. Self-contained, no shared references.
    resources:
    - name: end-session
      path: /end-session
      operations:
      - name: endsession
        method: GET
        description: End Session Endpoint
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id_token_hint
          in: query
          type: string
          description: The ID token previously issued to the client.
        - name: post_logout_redirect_uri
          in: query
          type: string
          description: The URI to redirect to after logout.
        - name: state
          in: query
          type: string
          description: Opaque value for maintaining state between request and callback.
    authentication:
      type: bearer
      token: '{{env.OIDC_API_KEY}}'
  exposes:
  - type: rest
    namespace: oidc-session-rest
    port: 8080
    description: REST adapter for OpenID Connect API — Session. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/end-session
      name: end-session
      description: REST surface for end-session.
      operations:
      - method: GET
        name: endsession
        description: End Session Endpoint
        call: oidc-session.endsession
        with:
          id_token_hint: rest.id_token_hint
          post_logout_redirect_uri: rest.post_logout_redirect_uri
          state: rest.state
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: oidc-session-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpenID Connect API — Session. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: end-session-endpoint
      description: End Session Endpoint
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: oidc-session.endsession
      with:
        id_token_hint: tools.id_token_hint
        post_logout_redirect_uri: tools.post_logout_redirect_uri
        state: tools.state
      outputParameters:
      - type: object
        mapping: $.