OneLogin · Capability

OneLogin API — MFA

OneLogin API — MFA. 2 operations. Lead operation: Get available auth factors. Self-contained Naftiko capability covering one Onelogin business surface.

Run with Naftiko OneloginMFA

What You Can Do

GET
Getotpdevices — Get available auth factors
/v1/api/1/users/{id}/otp-devices
POST
Enrollfactor — Enroll auth factor
/v1/api/1/users/{id}/otp-devices

MCP Tools

get-available-auth-factors

Get available auth factors

read-only idempotent
enroll-auth-factor

Enroll auth factor

Capability Spec

onelogin-mfa.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OneLogin API — MFA
  description: 'OneLogin API — MFA. 2 operations. Lead operation: Get available auth factors. Self-contained Naftiko capability
    covering one Onelogin business surface.'
  tags:
  - Onelogin
  - MFA
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    ONELOGIN_API_KEY: ONELOGIN_API_KEY
capability:
  consumes:
  - type: http
    namespace: onelogin-mfa
    baseUri: https://{subdomain}.onelogin.com
    description: OneLogin API — MFA business capability. Self-contained, no shared references.
    resources:
    - name: api-1-users-id-otp_devices
      path: /api/1/users/{id}/otp_devices
      operations:
      - name: getotpdevices
        method: GET
        description: Get available auth factors
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: enrollfactor
        method: POST
        description: Enroll auth factor
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.ONELOGIN_API_KEY}}'
  exposes:
  - type: rest
    namespace: onelogin-mfa-rest
    port: 8080
    description: REST adapter for OneLogin API — MFA. One Spectral-compliant resource per consumed operation, prefixed with
      /v1.
    resources:
    - path: /v1/api/1/users/{id}/otp-devices
      name: api-1-users-id-otp-devices
      description: REST surface for api-1-users-id-otp_devices.
      operations:
      - method: GET
        name: getotpdevices
        description: Get available auth factors
        call: onelogin-mfa.getotpdevices
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: enrollfactor
        description: Enroll auth factor
        call: onelogin-mfa.enrollfactor
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: onelogin-mfa-mcp
    port: 9090
    transport: http
    description: MCP adapter for OneLogin API — MFA. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: get-available-auth-factors
      description: Get available auth factors
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: onelogin-mfa.getotpdevices
      outputParameters:
      - type: object
        mapping: $.
    - name: enroll-auth-factor
      description: Enroll auth factor
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: onelogin-mfa.enrollfactor
      outputParameters:
      - type: object
        mapping: $.