Apache OFBiz · Capability

Apache OFBiz REST API — Authentication

Apache OFBiz REST API — Authentication. 2 operations. Lead operation: Apache OFBiz Refresh JWT Access Token. Self-contained Naftiko capability covering one Apache Ofbiz business surface.

Run with Naftiko Apache OfbizAuthentication

What You Can Do

POST
Refreshtoken — Apache OFBiz Refresh JWT Access Token
/v1/auth/refresh
POST
Gettoken — Apache OFBiz Obtain JWT Access Token
/v1/auth/token

MCP Tools

apache-ofbiz-refresh-jwt-access

Apache OFBiz Refresh JWT Access Token

apache-ofbiz-obtain-jwt-access

Apache OFBiz Obtain JWT Access Token

Capability Spec

rest-authentication.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache OFBiz REST API — Authentication
  description: 'Apache OFBiz REST API — Authentication. 2 operations. Lead operation: Apache OFBiz Refresh JWT Access Token.
    Self-contained Naftiko capability covering one Apache Ofbiz business surface.'
  tags:
  - Apache Ofbiz
  - Authentication
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_OFBIZ_API_KEY: APACHE_OFBIZ_API_KEY
capability:
  consumes:
  - type: http
    namespace: rest-authentication
    baseUri: https://localhost:8443/rest
    description: Apache OFBiz REST API — Authentication business capability. Self-contained, no shared references.
    resources:
    - name: auth-refresh
      path: /auth/refresh
      operations:
      - name: refreshtoken
        method: POST
        description: Apache OFBiz Refresh JWT Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: auth-token
      path: /auth/token
      operations:
      - name: gettoken
        method: POST
        description: Apache OFBiz Obtain JWT Access Token
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.APACHE_OFBIZ_API_KEY}}'
  exposes:
  - type: rest
    namespace: rest-authentication-rest
    port: 8080
    description: REST adapter for Apache OFBiz REST API — Authentication. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/auth/refresh
      name: auth-refresh
      description: REST surface for auth-refresh.
      operations:
      - method: POST
        name: refreshtoken
        description: Apache OFBiz Refresh JWT Access Token
        call: rest-authentication.refreshtoken
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/auth/token
      name: auth-token
      description: REST surface for auth-token.
      operations:
      - method: POST
        name: gettoken
        description: Apache OFBiz Obtain JWT Access Token
        call: rest-authentication.gettoken
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: rest-authentication-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache OFBiz REST API — Authentication. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: apache-ofbiz-refresh-jwt-access
      description: Apache OFBiz Refresh JWT Access Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-authentication.refreshtoken
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-ofbiz-obtain-jwt-access
      description: Apache OFBiz Obtain JWT Access Token
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: rest-authentication.gettoken
      outputParameters:
      - type: object
        mapping: $.